diff options
author | Bill Nottingham <notting@redhat.com> | 1999-09-14 14:34:37 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-09-14 14:34:37 +0000 |
commit | cfea400d279c9d23802c37298ddcdb536d48df0a (patch) | |
tree | 61b2c01ec2f272f09efb738cfe379648134d27c7 /rc.d | |
parent | eae8d06b99dfaef7407f57db5954149063bf3957 (diff) | |
download | initscripts-cfea400d279c9d23802c37298ddcdb536d48df0a.tar initscripts-cfea400d279c9d23802c37298ddcdb536d48df0a.tar.gz initscripts-cfea400d279c9d23802c37298ddcdb536d48df0a.tar.bz2 initscripts-cfea400d279c9d23802c37298ddcdb536d48df0a.tar.xz initscripts-cfea400d279c9d23802c37298ddcdb536d48df0a.zip |
grep file, not cat file | grep
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 0a9d3427..061b2309 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -470,8 +470,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 ] && cat /proc/scsi/scsi | grep -q 'Type: Sequential-Access' 2>/dev/null ; then - if cat /proc/devices | grep -qv ' 9 st' ; then +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 |