Prevent unwanted shell expansion
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 11 Sep 2008 12:23:20 +0000 (12:23 +0000)
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 11 Sep 2008 12:23:20 +0000 (12:23 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12568 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/sbin/usb-storage

index 23be385..e02efa8 100755 (executable)
@@ -9,10 +9,10 @@ while [ $i -le 10 ]; do
        for blk in `find host* -type d 2>/dev/null`; do
                [ -d /sys/${DEVPATH}/${blk}/block/ ] && {
                        cd 
-                       for disc in `find /sys/${DEVPATH}/${blk}/block -name sd*`; do   
+                       for disc in `find /sys/${DEVPATH}/${blk}/block -name "sd*"`; do
                                sleep 2
                                cd $disc
-                               for node in `find . -name sd* | cut -d "/" -f2`; do
+                               for node in `find . -name "sd*" | cut -d "/" -f2`; do
                                        echo "mounting /dev/${node} on /mnt/usbdrive"
                                        mkdir -p /mnt/usbdrive
                                        mount /dev/${node} /mnt/usbdrive
This page took 0.027338 seconds and 4 git commands to generate.