BLIT/My_UDEV_notify/my-udev-notify.rules
2016-09-16 03:03:49 +02:00

5 lines
382 B
Text

# - copy this file to /etc/udev/rules.d directory;
# - modify 2 paths below: they should match your real path to my-udev-notify.sh
ACTION=="add", RUN+="/bin/bash /usr/local/bin/my-udev-notify.sh -a add -p '%p' -b '$attr{busnum}' -d '$attr{devnum}'"
ACTION=="remove", RUN+="/bin/bash /usr/local/bin/my-udev-notify.sh -a remove -p '%p' -b '$attr{busnum}' -d '$attr{devnum}'"