Don't quite understand and am not scripting pundit, however:
When a USB drive is plugged in a unique names for it appear somewhere in the /dev directory (assuming you are running udev or whatever it is called). So, for example, there will be a long name for the thing in /dev/disk/by-id. So how about writing a script that simply tests for that name being present?
|