Fix comments.
This commit is contained in:
parent
d3025e2406
commit
1a6f7391ec
|
@ -6,12 +6,12 @@ mkdir ${HOMEDIR}/videos
|
|||
for device in /sys/block/*/device; do
|
||||
if echo $(readlink -f "$device") | egrep -q "usb" ; then
|
||||
disk=$(echo "$device" | cut -f4 -d/)
|
||||
# Try the disk firs
|
||||
# Try the disk first.
|
||||
if sudo mount -t auto /dev/$disk ${HOMEDIR}/videos 2> /dev/null ; then
|
||||
echo "Mounted /dev/$disk to ${HOMEDIR}/videos"
|
||||
exit
|
||||
fi
|
||||
# Try the first partition
|
||||
# Try the first partition.
|
||||
if sudo mount -t auto /dev/${disk}1 ${HOMEDIR}/videos 2> /dev/null ; then
|
||||
echo "Mounted /dev/${disk}1 to ${HOMEDIR}/videos"
|
||||
exit
|
||||
|
|
|
@ -9,6 +9,6 @@ then
|
|||
./mount_first_usb.sh
|
||||
sudo ./dvdemu /dev/ttyUSB0 ${HOMEDIR}/videos/
|
||||
else
|
||||
# Drop to console
|
||||
# Drop to console.
|
||||
echo "No autostart file in ${HOMEDIR}, going to terminal."
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue