From 3f781cab37dbee76340c65602555a524ffea96f9 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 26 Aug 2007 00:48:49 +0200 Subject: [PATCH] rules: add REMOVE_CMD rule --- etc/udev/rules.d/95-udev-late.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/udev/rules.d/95-udev-late.rules b/etc/udev/rules.d/95-udev-late.rules index 1755d085..4a015b9e 100644 --- a/etc/udev/rules.d/95-udev-late.rules +++ b/etc/udev/rules.d/95-udev-late.rules @@ -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" -- 2.39.5