From: nathan Date: Fri, 12 May 2006 18:47:07 +0000 (+0000) Subject: Branch b1_5 X-Git-Tag: v1_7_100~1^90~8^2~246 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ec3d73e8b8cd428c4c1fac5c27edf117ac238992;p=fs%2Flustre-release.git Branch b1_5 b=8007 added module_cleanup script at vitaly's request --- diff --git a/lustre/utils/module_cleanup.sh b/lustre/utils/module_cleanup.sh new file mode 100755 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 +