3 # remove all lustre modules. Won't succeed if they're in use, or if you
4 # manually did a 'lctl network up'.
5 ###############################################################################
8 PATH=$PWD/$SRCDIR:$SRCDIR:$SRCDIR/../utils:$PATH
11 2.4.*) RMMOD="modprobe -r";;
15 lctl modules | awk '{ print $2 }' | xargs $RMMOD >/dev/null 2>&1
16 # do it again, in case we tried to unload the lnd's too early
17 lctl modules | awk '{ print $2 }' | xargs $RMMOD >/dev/null 2>&1
18 # third times the charm
19 lsmod | grep lnet > /dev/null && lctl modules | awk '{ print $2 }' | xargs $RMMOD