Results 1 to 2 of 2

Thread: udev rule not working

  1. #1

    Unhappy udev rule not working


    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/" 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?


  2. Re: udev rule not working

    Try adding;
    ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", RUN+="/tmp/"
    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?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts