diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1997-10-10 13:56:27 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1997-10-10 13:56:27 +0000 |
commit | b5f29555d697436db82a303a33712d2cfcc099ab (patch) | |
tree | 98de272255760299443146203362ba1e11f037d8 | |
parent | 535d44b3817e63611eef42e2122245ce5f07991a (diff) | |
download | initscripts-b5f29555d697436db82a303a33712d2cfcc099ab.tar initscripts-b5f29555d697436db82a303a33712d2cfcc099ab.tar.gz initscripts-b5f29555d697436db82a303a33712d2cfcc099ab.tar.bz2 initscripts-b5f29555d697436db82a303a33712d2cfcc099ab.tar.xz initscripts-b5f29555d697436db82a303a33712d2cfcc099ab.zip |
Only check scsi if it exists.
-rwxr-xr-x | rc.d/rc.sysinit | 2 |
1 files changed, 1 insertions, 1 deletions
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... |