for blk in `find host* -type d 2>/dev/null`; do
[ -d /sys/${DEVPATH}/${blk}/block/ ] && {
cd
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
- 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
echo "mounting /dev/${node} on /mnt/usbdrive"
mkdir -p /mnt/usbdrive
mount /dev/${node} /mnt/usbdrive