Whamcloud - gitweb
testing that landing to head keeps history
[fs/lustre-release.git] / lnet / utils / lnetunload
1 #!/bin/sh
2
3 lnds=$(echo k{sock,qsw,gm,{open,i,v,o2,c}ib,ra,ptl,mx}lnd)
4
5 if lctl network down > /dev/null 2>&1; then
6     for mod in $lnds; do
7         if grep "^$mod" /proc/modules >/dev/null 2>&1; then
8             rmmod $mod
9         fi
10     done
11
12     rmmod lnet 
13     rmmod libcfs
14 fi