2 # Copyright (C) 2006 OpenWrt.org
6 [ -f /sys
/${DEVPATH}/idVendor
-a "$(cat /sys/${DEVPATH}/idVendor)" != "0000" ] && {
10 HOST
=$
(find ${NUM}:*/host* -type d
)
13 echo -ne "waiting for disk"
15 while [ ! -d "/dev/scsi/host${HOST}/bus0/target0/lun0" ]; do {
18 [ "$((++time))" -gt 10 ] && break
22 cd /sys
/bus
/scsi
/devices
/${HOST}\
:0\
:0\
:0
23 for BLOCK
in block
:* ; do {
25 BLOCK
=${BLOCK##block\:}
26 ln -sf /dev
/scsi
/host${HOST}/bus
0/target
0/lun
0/disc
/dev
/${BLOCK}
27 for DEV
in ${BLOCK}*; do {
28 ln -sf /dev
/scsi
/host${HOST}/bus
0/target
0/lun
0/part
${DEV##$BLOCK} /dev
/$DEV
This page took 0.046634 seconds and 5 git commands to generate.