Re:Ask HN: What are the things that you have automated in yo...
by EdCoffey on Monday June 25, 2018 @08:37AM
(#17391872)
I used udev to run the script as soon as the drive is mounted. The tricky part was ensuring the drive would mount automatically when inserted, even if I wasn't logged in. I tried a range of different tools, and eventually settled on autofs.
Re:Ask HN: What are the things that you have automated in yo...
by icebraining on Monday June 25, 2018 @04:32AM
(#17390823)
You can use an udev rule: https://askubuntu.com/questions/489306/execute-script-on-ins...
I'm not sure how to autorun when an SD card is inserted (using ubuntu here).