Whamcloud - gitweb
LU-1581 utils: unknown fstype
[fs/lustre-release.git] / lustre / utils / module_cleanup.sh
1 #!/bin/sh
2
3 MDIR=/lib/modules/`uname -r`/lustre
4 mkdir -p $MDIR
5
6 KVER=24
7 EXT=o
8 FSFLT=fsfilt_ext3
9 MODFILE="/etc/modules.conf"
10 if [ `uname -r | cut -c 3` -eq 6 ]; then
11     KVER=26
12     EXT=ko
13     FSFLT=fsfilt_ldiskfs
14     MODFILE="/etc/modprobe.conf"
15 fi
16
17 echo "Removing Lustre modules from "$MDIR
18
19 rm -f $MDIR/*
20 depmod -a
21 rm -f /sbin/mount.lustre
22 rm -f /usr/sbin/l_getidentity
23 rm -f /usr/sbin/l_facl