Other Help Topics :: DSL Music player?
Just throwing this out....no idea if it would work.....
while true do
mount /mnt/sda1 2>/dev null && \
xmms /mnt/sda1/ && \
umount /mnt/sda1 && \
sleep 10
done
I assume this would try to mount sda1 and play the music. When it's done playing it will umount, wait 10 seconds, and then repeat.
If it doesn't succeed it will continue to try until you kill the process.
...or so i assume =o)
Just a side note: isn't hot swapping usb drives not recommended? Like you should unmount/eject them before physically ejecting the drive, or else you could corrupt the fs/files I guess?
as it would only be mp3s....im not too worried about damaging a file.....
thanks for the help
original here.