2 # Copyright (C) 2006 OpenWrt.org
8 echo -ne "waiting for $DEV"
9 while [ ! -b /dev/$DEV ]; do {
12 [ $((++time)) -gt 10 ] && break
16 [ ${DEV%%[0-9]} != ${DEV} -a ${DEV%%[0-9]} != "loop" ] && {
18 mount /dev/$DEV /tmp/$DEV -t auto -o sync
22 umount /tmp/$DEV && rm -f /dev/$DEV /tmp/$DEV