summaryrefslogtreecommitdiff
blob: 7d890d0d5f66b03781a45d3da2392f2a614a663b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- rescan-scsi-bus.sh.orig	2008-01-15 01:01:21.316547000 -0800
+++ rescan-scsi-bus.sh	2008-01-15 01:02:02.704184735 -0800
@@ -444,7 +444,10 @@
     echo $result
 }
 
-if test ! -d /proc/scsi/; then
+# /proc/scsi may not exist in new 2.6 kernels without CONFIG_SCSI_PROC_FS
+if test -d /proc/scsi/ || test -d /sys/bus/scsi/; then
+	:
+else
   echo "Error: SCSI subsystem not active"
   exit 1
 fi