udev rule not working

Hi,

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.

any idea how to solve this?

thanks

Hi
Try adding;

ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", RUN+="/tmp/test.sh"

You need to use the command (after a rule change/edit);

udevadm trigger

Then monitor and see what is happening when the device is hot-plugged;

udevadm monitor

Are you really on a System Z?