From b5f29555d697436db82a303a33712d2cfcc099ab Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Fri, 10 Oct 1997 13:56:27 +0000 Subject: Only check scsi if it exists. --- rc.d/rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index af3753c9..e4002c4b 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -195,7 +195,7 @@ 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 cat /proc/scsi/scsi | grep -q 'Type: Sequential-Access' 2>/dev/null ; then +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 [ -n "$USEMODULES" ] ; then # Try to load the module. If it fails, ignore it... -- cgit v1.2.1