summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-09-01 17:42:35 +0000
committerJohn Crispin <john@openwrt.org>2008-09-01 17:42:35 +0000
commit38516cd7800fdcc2305b2d0041fda8fd4bd30e2f (patch)
tree2549aac87af9c559a09b1ffd8c00185ce9dc56a4 /package/base-files
parentd962e2ea4ad728c8377a4dc4d0ad4362d9bdd9be (diff)
downloadmtk-20170518-38516cd7800fdcc2305b2d0041fda8fd4bd30e2f.zip
mtk-20170518-38516cd7800fdcc2305b2d0041fda8fd4bd30e2f.tar.gz
mtk-20170518-38516cd7800fdcc2305b2d0041fda8fd4bd30e2f.tar.bz2
fixes usb storage mounting
SVN-Revision: 12465
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/sbin/usb-storage2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/usb-storage b/package/base-files/files/sbin/usb-storage
index 51e704f..6c32de8 100755
--- a/package/base-files/files/sbin/usb-storage
+++ b/package/base-files/files/sbin/usb-storage
@@ -10,7 +10,7 @@ while [ $i -le 10 ]; do
cd /sys${DEVPATH}
for blk in `find host* -type d 2>/dev/null`; do
cd /sys/${DEVPATH}/${blk}
- BLK=$(find block* -type l 2>/dev/null)
+ BLK=$(find block* -type d 2>/dev/null)
[ -n "${BLK}" ] && {
cd /sys${DEVPATH}/${blk}/${BLK}
ls /dev/ > /tmp/d