chiark / gitweb /
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 1755d08..4a015b9 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"