From cfea400d279c9d23802c37298ddcdb536d48df0a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 14 Sep 1999 14:34:37 +0000 Subject: grep file, not cat file | grep --- rc.d/rc.sysinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1