I need to run some code to install and unmount a storage device.
How can I listen to these events on Linux?
- I was thinking of adding udev rules to run some script (any know-how in this matter is welcome)
- But I would rather listen to events from the kernel in some kind of network socket with my daemon (like udev) or something like that.
clyfe source
share