[Ocfs-tools-commits] manish commits r213 - trunk/load_ocfs
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Sep 13 17:24:52 CDT 2004
Author: manish
Date: 2004-09-13 17:24:50 -0500 (Mon, 13 Sep 2004)
New Revision: 213
Modified:
trunk/load_ocfs/load_ocfs
Log:
Use insmod only when we have a full path to the module
Modified: trunk/load_ocfs/load_ocfs
===================================================================
--- trunk/load_ocfs/load_ocfs 2004-09-13 18:32:04 UTC (rev 212)
+++ trunk/load_ocfs/load_ocfs 2004-09-13 22:24:50 UTC (rev 213)
@@ -319,8 +319,17 @@
# Below here is the generic engine. This code should not change.
#
-# Check on insmod
-INSMOD="/sbin/insmod"
+# Figure out which module loading program to use
+case $MODULE in
+/*)
+ INSMOD="/sbin/insmod"
+ ;;
+*)
+ INSMOD="/sbin/modprobe"
+ ;;
+esac
+
+# Check on module loader
if [ ! -x $INSMOD ]
then
die "/sbin/insmod does not exist"
More information about the Ocfs-tools-commits
mailing list