Whamcloud - gitweb
Branch b1_5
authornathan <nathan>
Fri, 12 May 2006 18:47:07 +0000 (18:47 +0000)
committernathan <nathan>
Fri, 12 May 2006 18:47:07 +0000 (18:47 +0000)
b=8007
added module_cleanup script at vitaly's request

lustre/utils/module_cleanup.sh [new file with mode: 0755]

diff --git a/lustre/utils/module_cleanup.sh b/lustre/utils/module_cleanup.sh
new file mode 100755 (executable)
index 0000000..92f0cce
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+MDIR=/lib/modules/`uname -r`/lustre
+mkdir -p $MDIR
+
+KVER=24
+EXT=o
+FSFLT=fsfilt_ext3
+MODFILE="/etc/modules.conf"
+if [ `uname -r | cut -c 3` -eq 6 ]; then
+    KVER=26
+    EXT=ko
+    FSFLT=fsfilt_ldiskfs
+    MODFILE="/etc/modprobe.conf"
+fi
+
+echo "Removing Lustre modules from "$MDIR
+
+rm -f $MDIR/*
+depmod -a
+rm -f /sbin/mount.lustre
+