diff options
author | Bill Nottingham <notting@redhat.com> | 2005-05-30 19:50:33 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-05-30 19:50:33 +0000 |
commit | 1145379bb93c8d116f04fdd39824296092cc7d4a (patch) | |
tree | e7d638dc564235ac3a2ebc112814b6244405001a /rc.d/rc.sysinit | |
parent | 2251d2bc0f100d99d8ca73a392c52130dac66b65 (diff) | |
download | initscripts-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>)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 12 |
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 |