this might be a little stuip question for a linux guy, but at the moment I dont know how to handle that.
How can I run a script if a usb device was pluged in?
I have to configure that usb device as network adapter. My script should do this very vell.
But I dont want to run that script in a loop and check every dmesg log.
Is it possible to run a script even a usb device was pluged in? Or is there another way to do that? Do I have to creat a deamon?
And I can’t get any script running with an udev rule.
I’ve created a rule called 80-test.rules in /etc/udev/rules.d
ACTION=“add”, RUN*="/tmp/test.sh"
is the only content in this file.
I want to run a script on every usb add action for all devices.
but nothing happens.
running the script manually works fine.