fixes usb storage mounting

SVN-Revision: 12465
This commit is contained in:
John Crispin 2008-09-01 17:42:35 +00:00
parent d962e2ea4a
commit 38516cd780

View file

@ -10,7 +10,7 @@ while [ $i -le 10 ]; do
cd /sys${DEVPATH} cd /sys${DEVPATH}
for blk in `find host* -type d 2>/dev/null`; do for blk in `find host* -type d 2>/dev/null`; do
cd /sys/${DEVPATH}/${blk} cd /sys/${DEVPATH}/${blk}
BLK=$(find block* -type l 2>/dev/null) BLK=$(find block* -type d 2>/dev/null)
[ -n "${BLK}" ] && { [ -n "${BLK}" ] && {
cd /sys${DEVPATH}/${blk}/${BLK} cd /sys${DEVPATH}/${blk}/${BLK}
ls /dev/ > /tmp/d ls /dev/ > /tmp/d