]> git.ozlabs.org Git - tonyb-yaboot.git/blobdiff - ybin/ofpath
Fix ofpath 2.6 /proc/scsi check
[tonyb-yaboot.git] / ybin / ofpath
index e9c29aaeadeccd4d465e5751d06c884cf8b93f55..58bb6f4b98953f5c7712743eadc04d51e803c6f7 100755 (executable)
@@ -194,8 +194,8 @@ scsiinfo()
                    -n "$(ls /sys/bus/scsi/devices 2>/dev/null)" ] ; then
                    echo 1>&2 "$PRG: /proc/scsi/scsi does not exist"
                    echo 1>&2 "$PRG: Make sure you compiled your kernel with CONFIG_SCSI_PROC_FS=n"
+                   return 1
                fi
-               return 1
                ;;
        esac
        echo 1>&2 "$PRG: /dev/$DEVNODE: Device not configured"