| The Following User Says Thank You to p24 For This Useful Post: | ||
| The Following User Says Thank You to onil For This Useful Post: | ||
| The Following 15 Users Say Thank You to NIN101 For This Useful Post: | ||
Estel, Fabry, glabifrons, hyno111, kinggo, mr_pingu, n0idea, peterleinchen, reinob, saponga, sLumPia, thedead1440, Wikiwide, xes, zincholic | ||
| The Following User Says Thank You to bogdanov_s For This Useful Post: | ||
| The Following User Says Thank You to NIN101 For This Useful Post: | ||

devices=""
for p in /sys/block/mmcblk*/; do
device_name=`basename $p`
if [ "x${devices}" != "x" ]; then
devices="${devices},/dev/${device_name}"
else
devices="/dev/${device_name}"
fi
done
if [ "x${devices}" != "x" ]; then
/sbin/modprobe g_file_storage file=${devices} stall=0 removable=1
echo "USB Storage enabled for devices: ${devices}"
USB_STORAGE=1
else
echo "No USB storage devices found."
fi
| The Following User Says Thank You to rdorsch For This Useful Post: | ||
| The Following 3 Users Say Thank You to rdorsch For This Useful Post: | ||