Whamcloud - gitweb
b=18417
[fs/lustre-release.git] / lustre / utils / module_setup.sh
index b0db190..9f9792f 100755 (executable)
@@ -1,28 +1,20 @@
-#!/bin/sh
+#!/bin/bash
 
 MDIR=/lib/modules/`uname -r`/lustre
 /bin/rm -rf $MDIR
 mkdir -p $MDIR
 
-KVER=26
 EXT=ko
-FSFLT=fsfilt_ldiskfs
 if [ -d /etc/modprobe.d ]; then
     MODFILE="/etc/modprobe.d/Lustre"
 else
     MODFILE="/etc/modprobe.conf"
 fi
-if [ `uname -r | cut -c 3` -eq 4 ]; then
-    KVER=24
-    EXT=o
-    FSFLT=fsfilt_ext3
-    MODFILE="/etc/modules.conf"
-fi
 
 echo "Copying modules from local build dir to "$MDIR
 
 cp -u ../../lnet/lnet/lnet.$EXT $MDIR
-cp -u ../../lnet/libcfs/libcfs.$EXT $MDIR
+cp -u ../../libcfs/libcfs/libcfs.$EXT $MDIR
 cp -u ../../lnet/klnds/socklnd/ksocklnd.$EXT $MDIR
 cp -u ../../lnet/tests/pingcli.$EXT $MDIR
 cp -u ../../lnet/tests/pingsrv.$EXT $MDIR