projects
/
openwrt
/
staging
/
thess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10eaf08
)
Prevent unwanted shell expansion
author
Steven Barth
<cyrus@openwrt.org>
Thu, 11 Sep 2008 12:23:20 +0000
(12:23 +0000)
committer
Steven Barth
<cyrus@openwrt.org>
Thu, 11 Sep 2008 12:23:20 +0000
(12:23 +0000)
SVN-Revision: 12568
package/base-files/files/sbin/usb-storage
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/usb-storage
b/package/base-files/files/sbin/usb-storage
index 23be38593e481dbce6c42035a2a736e93d6a01bd..e02efa81159f0db9dce3681b464a2e3fccb28ecd 100755
(executable)
--- 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