summaryrefslogtreecommitdiff
path: root/package/base-files/files/sbin/usb-storage
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2008-09-11 12:23:20 +0000
committerSteven Barth <cyrus@openwrt.org>2008-09-11 12:23:20 +0000
commit5a4e88710bb3d3a00756a3d4ac7921ee829bb8b6 (patch)
tree8fd1a64625276c64f5568981a8edae54f926d969 /package/base-files/files/sbin/usb-storage
parent10eaf08da5e5eb66444448e60932fb871ea0a365 (diff)
downloadmtk-20170518-5a4e88710bb3d3a00756a3d4ac7921ee829bb8b6.zip
mtk-20170518-5a4e88710bb3d3a00756a3d4ac7921ee829bb8b6.tar.gz
mtk-20170518-5a4e88710bb3d3a00756a3d4ac7921ee829bb8b6.tar.bz2
Prevent unwanted shell expansion
SVN-Revision: 12568
Diffstat (limited to 'package/base-files/files/sbin/usb-storage')
-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 23be385..e02efa8 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