There is a script in /usr/lib/pm-utils/power.d/anacron
which restarts anacron if leptops are connected to power. Is it possible to have a similar script restart anacron if (a certain) USB-drive is connected, and how? I want to start the backup to my USB-drive using anacron.
Asked
Active
Viewed 1,000 times
1

highsciguy
- 849
udev
is the way to go. and .... http://askubuntu.com/questions/25071/how-to-run-a-script-when-a-distinct-flash-drive-is-mounted ;) – Rinzwind Dec 08 '12 at 15:04