2 # Copyright (C) 2007 OpenWrt.org
3 logger
"usb device is mass storage"
5 while [ $i -le 10 ]; do
6 logger
"waiting on usb drive $i ..."
9 for blk
in `find host* -type d 2>/dev/null`; do
10 [ -d /sys
/${DEVPATH}/${blk}/block
/ ] && {
12 for disc
in `find /sys/${DEVPATH}/${blk}/block -name sd*`; do
15 for node
in `find . -name sd* | cut -d "/" -f2`; do
16 echo "mounting /dev/${node} on /mnt/usbdrive"
17 mkdir
-p /mnt
/usbdrive
18 mount
/dev
/${node} /mnt
/usbdrive
This page took 0.056905 seconds and 5 git commands to generate.