Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
script trigger on USB device plug/unplug
Does anyone know what runs when a USB device is plugged in and how to add my script to that?
Thanks.HP Pavilion dv6000t
Intel Centrino Duo 2.0GHz
nVidia GeForce Go 7400
The real question is what time is it and why the hell am I still screwing around with my computer?
- Join Date
- Jan 2006
i guess that when a device is detected a file descriptor is written in /dev. you could check that in your script and run it. same idea for the reverse part.
i would do a google search in writing daemons and make one that checks for that fd every x seconds and runs your script as needed.