As I understand it devd.conf() can be configure to initiate an action when a particular device is present or becomes attached...
Is anyone aware of any examples showing how to execute a program when a USB device is inserted?
This is a section from devd.conf() which I may be able modify to do what I want:-
Is anyone aware of any examples showing how to execute a program when a USB device is inserted?
This is a section from devd.conf() which I may be able modify to do what I want:-
Code:
#
# Match a USB device type
#
notify 0 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "ATTACH";
match "intclass" "0x0e";
action "logger USB video device attached";
};