Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
orphan handling index creation and using code
[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