+ K2_DEVICE_ID=0
+ while [ "$DEVICE_PATH" = "" ] ; do
+ SCSI_HOSTNUMBER=`expr $SCSI_HOSTNUMBER - 1`
+ let "K2_DEVICE_ID += 1"
+ DEVICE_PATH="$(printhost $SCSI_HOSTNUMBER $HOST_LIST)"
+ done
+ echo "${DEVICE_PATH##*device-tree}/k2-sata@$K2_DEVICE_ID/disk@0:$PARTITION"
+ ;;
+ usb-storage)
+ HOST_LIST="$(for i in `find /proc/device-tree -name name | grep usb` ; do
+ lgrep "$i" "disk" ; done)"
+ DEVICE_PATH="$(printhost $SCSI_HOSTNUMBER $HOST_LIST)"
+ echo "${DEVICE_PATH##*device-tree}:$PARTITION"
+ ;;
+ sbp2|"")
+ # sbp-2 driver may not have a dir in /proc/scsi
+ HOST_LIST="$(for i in `find /proc/device-tree -name name` ; do
+ lgrep "$i" "sbp-2" ; done)"
+ if [ "$SCSI_HOSTNUMBER" = "" ] ; then
+ SCSI_HOSTNUMBER=1
+ fi
+ DEVICE_PATH="$(printhost $SCSI_HOSTNUMBER $HOST_LIST)"
+ echo "${DEVICE_PATH##*device-tree}/disk@0:$PARTITION"