Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d23c384
)
Branch b1_5
author
nathan
<nathan>
Fri, 12 May 2006 18:47:07 +0000
(18:47 +0000)
committer
nathan
<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]
patch
|
blob
diff --git a/lustre/utils/module_cleanup.sh
b/lustre/utils/module_cleanup.sh
new file mode 100755
(executable)
index 0000000..
92f0cce
--- /dev/null
+++ b/
lustre/utils/module_cleanup.sh
@@ -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
+