diff options
author | Florian La Roche <laroche@redhat.com> | 2002-07-11 07:41:06 +0000 |
---|---|---|
committer | Florian La Roche <laroche@redhat.com> | 2002-07-11 07:41:06 +0000 |
commit | de33ef43313eb1075030b8615de15c56192dadc4 (patch) | |
tree | ca04a0194f1ed11741ed673a8c326a717a43adab /rc.d/rc.sysinit | |
parent | d9d075c580f39e3b6597ff65723845939e9880dc (diff) | |
download | initscripts-de33ef43313eb1075030b8615de15c56192dadc4.tar initscripts-de33ef43313eb1075030b8615de15c56192dadc4.tar.gz initscripts-de33ef43313eb1075030b8615de15c56192dadc4.tar.bz2 initscripts-de33ef43313eb1075030b8615de15c56192dadc4.tar.xz initscripts-de33ef43313eb1075030b8615de15c56192dadc4.zip |
- /etc/init.d/functions:
daemon(): avoid starting another bash
killproc(): avoid starting another bash for the default case
- do not call "insmod -p" before loading the "st" module
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index f1a09764..0c866bce 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -331,7 +331,7 @@ if [ -n "$IN_INITLOG" ]; then IN_INITLOG= fi -if ! grep -iq nomodules /proc/cmdline >/dev/null 2>&1 && [ -f /proc/ksyms ]; then +if ! grep -iq nomodules /proc/cmdline 2>/dev/null && [ -f /proc/ksyms ]; then USEMODULES=y fi @@ -619,11 +619,8 @@ fi # If a SCSI tape has been detected, load the st module unconditionally # since many SCSI tapes don't deal well with st being loaded and unloaded if [ -f /proc/scsi/scsi ] && grep -q 'Type: Sequential-Access' /proc/scsi/scsi 2>/dev/null ; then - if grep -qv ' 9 st' /proc/devices ; then - if [ -n "$USEMODULES" ]; then - # Try to load the module. If it fails, ignore it... - insmod -p st >/dev/null 2>&1 && modprobe st >/dev/null 2>&1 - fi + if grep -qv ' 9 st' /proc/devices && [ -n "$USEMODULES" ]; then + modprobe st >/dev/null 2>&1 fi fi @@ -664,7 +661,7 @@ disk[17]=hdq; disk[18]=hdr; disk[19]=hds; disk[20]=hdt; if [ -x /sbin/hdparm ]; then for device in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do - unset MULTIPLE_IO USE_DMA EIDE_32BIT LOOKAHEAD EXTRA_PARAMS + unset MULTIPLE_IO USE_DMA EIDE_32BIT LOOKAHEAD EXTRA_PARAMS if [ -f /etc/sysconfig/harddisk${disk[$device]} ]; then . /etc/sysconfig/harddisk${disk[$device]} HDFLAGS[$device]= |