Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to create a script that automatically copy the dvd to a folder in my FreeBSD box (copy back DVD archives).
I would need a notification from the system when the DVD tray has been closed. I haven't found any start point which subsystem should provide this. I was look for hal, but I can't see how can it help me.

share|improve this question

Take a look at the sysutils/automount port.

It's config file has a parameter FM where you could launch your script.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .