Results 1 to 2 of 2

Thread: udev rule not working

  1. #1

    Unhappy 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

  2. Re: udev rule not working

    Hi
    Try adding;
    Code:
    ENV{DEVTYPE}=="usb_device", ACTION=="add", SUBSYSTEM=="usb", RUN+="/tmp/test.sh"
    You need to use the command (after a rule change/edit);
    Code:
    udevadm trigger
    Then monitor and see what is happening when the device is hot-plugged;
    Code:
    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!

Bookmarks

Posting Permissions

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