3 # Copyright (C) 2006 OpenWrt.org
5 logger
"usb device is mass storage"
7 while [ $i -le 10 ]; do
8 logger
"waiting on usb drive $i ..."
11 for blk
in `find host* -type d`; do
12 cd /sys
/${DEVPATH}/${blk}
13 BLK
=$
(find block
* -type l
2> /dev
/null
)
15 cd /sys
${DEVPATH}/${blk}/${BLK}
18 for node
in `find sd* -type d | grep -v "/"`; do
19 echo "mounting /dev/${node} on /mnt/usbdrive"
20 mkdir
-p /mnt
/usbdrive
21 mount
/dev
/${node} /mnt
/usbdrive
This page took 0.0603 seconds and 5 git commands to generate.