1

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.

  • 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
  • That is most likely the best answer, restarting anacron wont do anything anyway. It will only do something if your cron jobs haven't been running. – coteyr Dec 08 '12 at 16:24

0 Answers0