]> err.no Git - systemd/commitdiff
rules: add REMOVE_CMD rule
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 25 Aug 2007 22:48:49 +0000 (00:48 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 25 Aug 2007 22:48:49 +0000 (00:48 +0200)
etc/udev/rules.d/95-udev-late.rules

index 1755d0855c79e4517954f3f41c65d1ff02d97e03..4a015b9eed252fcb317010bbd27644e47e62d3b4 100644 (file)
@@ -1,5 +1,8 @@
 # do not edit this file, it will be overwritten on update
 
+# run a command on remove events
+ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}"
+
 # event to be catched by udevmonitor
 RUN+="socket:/org/kernel/udev/monitor"