aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-05-30 19:50:18 +0000
committerBill Nottingham <notting@redhat.com>2005-05-30 19:50:18 +0000
commit94976424829a27d5281200f350538fa8042f2004 (patch)
tree31fcb931d207c6a29fffab6003fca897c6e509c8
parent0d3ebd9e79cb3cc04a8476aec79c581d9be67c4c (diff)
downloadinitscripts-94976424829a27d5281200f350538fa8042f2004.tar
initscripts-94976424829a27d5281200f350538fa8042f2004.tar.gz
initscripts-94976424829a27d5281200f350538fa8042f2004.tar.bz2
initscripts-94976424829a27d5281200f350538fa8042f2004.tar.xz
initscripts-94976424829a27d5281200f350538fa8042f2004.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