]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
2.4.x kernel EVMS modules are loaded only when really running on 2.4 kernels.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 24 May 2004 00:49:25 +0000 (00:49 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 24 May 2004 00:49:25 +0000 (00:49 +0000)
svn-id: @4121

rc.d/rc.sysinit

index 30ea9020fd83365cfdd5dc9038999acc210f801c..0a07352d91b8d3fa2f4f05e2ad9601750cd1c51b 100755 (executable)
@@ -445,13 +445,18 @@ fi
 # Find and activate volume groups:
 # EVMS
 if [ -x /sbin/evms_activate ]; then
-       # Linux 2.5 core module
-        modprobe -s -k evmscore > /dev/null 2>&1
-       # Linux 2.4 core modules
-        modprobe -s -k evms > /dev/null 2>&1
-        modprobe -s -k evms_passthru > /dev/null 2>&1
-        modprobe -s -k ldev_mgr > /dev/null 2>&1
-        modprobe -s -k dos_part > /dev/null 2>&1
+    
+       if [ "$(kernelverser)" -lt "002006" ]; then
+           # Linux 2.4 core modules
+           modprobe -s -k evms > /dev/null 2>&1
+           modprobe -s -k evms_passthru > /dev/null 2>&1
+           modprobe -s -k ldev_mgr > /dev/null 2>&1
+           modprobe -s -k dos_part > /dev/null 2>&1
+       else
+           # Linux 2.6 core module
+           modprobe -s -k evmscore > /dev/null 2>&1
+       fi
+       
        is_yes "$EVMS_GUID_PTABLE" && modprobe -s -k gpt_part >/dev/null 2>&1
        is_yes "$EVMS_LVM" && modprobe -s -k lvm_vge >/dev/null 2>&1
        is_yes "$EVMS_AIX" && modprobe -s -k AIXlvm_vge >/dev/null 2>&1
This page took 0.039221 seconds and 4 git commands to generate.