diff options
Diffstat (limited to 'sys-apps/rescan-scsi-bus/files/rescan-scsi-bus-1.25-support-sysfs-only-systems.patch')
-rw-r--r-- | sys-apps/rescan-scsi-bus/files/rescan-scsi-bus-1.25-support-sysfs-only-systems.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-apps/rescan-scsi-bus/files/rescan-scsi-bus-1.25-support-sysfs-only-systems.patch b/sys-apps/rescan-scsi-bus/files/rescan-scsi-bus-1.25-support-sysfs-only-systems.patch new file mode 100644 index 000000000000..7d890d0d5f66 --- /dev/null +++ b/sys-apps/rescan-scsi-bus/files/rescan-scsi-bus-1.25-support-sysfs-only-systems.patch @@ -0,0 +1,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 |