Hello,

I am currently running SPBLinux. I would like the second USB
that contains the music files to be automatically detected when it is
inserted. I would also like the file to be automatically loaded to the
ram disk.

mkdir /music 2
mount /dev/sdb1 /music 2
mkdir /music_ram
mount -t tmpfs -o size=800m none /music_ram
cp /music 2/*.wav /music_ram

I have created the script as above, but the problem is that it does
not wait for me to insert the USB drive when run on startup. Is there any way to
instruct the script to wait after the line "mkdir /music 2". Wait for me to insert the
USB drive and then continue with the rest of the script?

yours