aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit2
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...