Prevent unwanted shell expansion
SVN-Revision: 12568
This commit is contained in:
parent
10eaf08da5
commit
5a4e88710b
1 changed files with 2 additions and 2 deletions
|
@ -9,10 +9,10 @@ while [ $i -le 10 ]; do
|
||||||
for blk in `find host* -type d 2>/dev/null`; do
|
for blk in `find host* -type d 2>/dev/null`; do
|
||||||
[ -d /sys/${DEVPATH}/${blk}/block/ ] && {
|
[ -d /sys/${DEVPATH}/${blk}/block/ ] && {
|
||||||
cd
|
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
|
sleep 2
|
||||||
cd $disc
|
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"
|
echo "mounting /dev/${node} on /mnt/usbdrive"
|
||||||
mkdir -p /mnt/usbdrive
|
mkdir -p /mnt/usbdrive
|
||||||
mount /dev/${node} /mnt/usbdrive
|
mount /dev/${node} /mnt/usbdrive
|
||||||
|
|
Loading…
Reference in a new issue