X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=ybin%2Fofpath;h=58bb6f4b98953f5c7712743eadc04d51e803c6f7;hp=6763dfd97e631aff2e8f2a73d1a5039a0e33a3ab;hb=fc172c3d66234d82994c6adf3498718515253205;hpb=c5c62181de2ab0c79509545cc3fad086a80a3e1b diff --git a/ybin/ofpath b/ybin/ofpath index 6763dfd..58bb6f4 100755 --- a/ybin/ofpath +++ b/ybin/ofpath @@ -187,6 +187,17 @@ scsiinfo() { ## see if system has scsi at all if [ ! -f /proc/scsi/scsi ] ; then + local kver="$(uname -r)" + case "$kver" in + 2.5.*|2.6.*) + if [ -d /sys/bus/scsi/devices -a \ + -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 + ;; + esac echo 1>&2 "$PRG: /dev/$DEVNODE: Device not configured" return 1 fi