aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-11 12:23:20 +0000
committerSteven Barth <steven@midlink.org>2008-09-11 12:23:20 +0000
commitcddfd99ed55c782f130fb4231f51da7a2101cdc5 (patch)
tree82a227181991627aacbff8e03490a3bcd60f823f /package/base-files
parent8b0e8fb5323122396476a71fa8520ad81b45b1b0 (diff)
downloadupstream-cddfd99ed55c782f130fb4231f51da7a2101cdc5.tar.gz
upstream-cddfd99ed55c782f130fb4231f51da7a2101cdc5.tar.bz2
upstream-cddfd99ed55c782f130fb4231f51da7a2101cdc5.zip
Prevent unwanted shell expansion
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12568 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/sbin/usb-storage4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/usb-storage b/package/base-files/files/sbin/usb-storage
index 23be38593e..e02efa8115 100755
--- a/package/base-files/files/sbin/usb-storage
+++ b/package/base-files/files/sbin/usb-storage
@@ -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