Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
brokenmachine
8y ago
0 comments
Save
Share
Can you share how you do the SD card thing?
I'm not sure how to autorun when an SD card is inserted (using ubuntu here).
0 comments
2 comments · 2 top-level
top
newest
oldest
EdCoffey
8y ago
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.
icebraining
8y ago
You can use an udev rule:
https://askubuntu.com/questions/489306/execute-script-on-ins...
j
/
k
navigate · click thread line to collapse