0
votes
1answer
46 views

How can I run code whenever a USB device is (un)plugged, without requiring root permissions?

I have a script that I wish to run whenever I plug/unplug a mouse or keyboard to my USB port. There is already plenty of documentation on how to configure udev rules to run arbitrary scripts when a ...
0
votes
1answer
39 views

missing sbin/hotplug in Ubuntu

Im using Ubuntu and I cannot find /sbin/hotplug. Did anything replace it? How does it handle hotplugging? I read that kernel calls it for notifying user space when an hotplug event happens. I also ...