Jump to content
1 post in this topic

Recommended Posts

This forum might not the most appropriate for questions about linux, but somebody may have the knowledge i'm looking for!

 

This question is related to ubuntu linux 6.06. I'm trying to run a shell script automatically every time a usb storage device is plugged in/out. I have seen several people asking this question but have not found a solution yet.

I believe that any file in /etc/dev.d/default/ with extension .dev should run when usb device is added or removed? I have also tried adding a rule to /etc/udev/rules.d but this has not worked either. also, from what i have read, is udev is the replacement for hotplug?? I have seen several sites suggesting use of hotplug and /etc/hotplug files, but these do not exist on my system.

 

If anyone can talk me through what is involved in setting this up, using hotplug, dev or any other method, it would be much appreciated.

Edited by Dr. Evil
×
×
  • Create New...