summaryrefslogtreecommitdiff
path: root/etc/udev/debian/hotplugd.rules
diff options
context:
space:
mode:
Diffstat (limited to 'etc/udev/debian/hotplugd.rules')
-rw-r--r--etc/udev/debian/hotplugd.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/udev/debian/hotplugd.rules b/etc/udev/debian/hotplugd.rules
index cf84682abf..e311d22678 100644
--- a/etc/udev/debian/hotplugd.rules
+++ b/etc/udev/debian/hotplugd.rules
@@ -3,6 +3,13 @@ SUBSYSTEM=="drivers", OPTIONS="last_rule"
SUBSYSTEM=="module", OPTIONS="last_rule"
# compatibility support for the obsolete hotplug.d and dev.d directories
+# do not run the hotplug.d scripts when started from udevstart
ENV{UDEVD_EVENT}=="1", RUN+="/sbin/udev_run_hotplugd"
RUN+="/sbin/udev_run_devd"
+# run a command on remove events
+ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}"
+
+# debugging monitor
+RUN+="socket:/org/kernel/udev/monitor"
+