aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-05-30 19:50:33 +0000
committerBill Nottingham <notting@redhat.com>2005-05-30 19:50:33 +0000
commit1145379bb93c8d116f04fdd39824296092cc7d4a (patch)
treee7d638dc564235ac3a2ebc112814b6244405001a
parent2251d2bc0f100d99d8ca73a392c52130dac66b65 (diff)
downloadinitscripts-1145379bb93c8d116f04fdd39824296092cc7d4a.tar
initscripts-1145379bb93c8d116f04fdd39824296092cc7d4a.tar.gz
initscripts-1145379bb93c8d116f04fdd39824296092cc7d4a.tar.bz2
initscripts-1145379bb93c8d116f04fdd39824296092cc7d4a.tar.xz
initscripts-1145379bb93c8d116f04fdd39824296092cc7d4a.zip
use modprobe, not insmod (#159120, <tmus@tmus.dk>)
-rwxr-xr-xrc.d/rc.sysinit12
1 files changed, 7 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 2ab733a2..886452b7 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -307,13 +307,15 @@ fi
update_boot_stage RChostname
action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
-# Initialiaze ACPI bits
+# Initialize ACPI bits
if [ -d /proc/acpi ]; then
- for module in /lib/modules/$unamer/kernel/drivers/acpi/* ; do
- insmod $module >/dev/null 2>&1
- done
+ for module in /lib/modules/$unamer/kernel/drivers/acpi/* ; do
+ module=${module##*/}
+ module=${module%.ko}
+ modprobe $module >/dev/null 2>&1
+ done
fi
-
+
# configure all zfcp (scsi over fibrechannel) devices before trying to mount them
# zfcpconf.sh exists only on mainframe
[ -x /sbin/zfcpconf.sh ] && /sbin/zfcpconf.sh