1
vote
3answers
1k views

Autodetect/mount SDCards and run script for them on Linux

I'm currently running SME Server, and need to have a script run upon the attachment of SD Cards to my server. The script itself works fine (it copies the contents of the cards), but the automounting ...
4
votes
3answers
2k views

Run a command when a disk is inserted (Linux)

I would like to automatically run my own command any time a drive is inserted under Linux (including USB drives, for example). Obviously the simplest solution would be to regularly poll and check for ...