summarylogtreecommitdiffstats
path: root/systemd-hook
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-hook')
-rw-r--r--systemd-hook8
1 files changed, 5 insertions, 3 deletions
diff --git a/systemd-hook b/systemd-hook
index 4a62ec6c48df..63f27e0bd58a 100644
--- a/systemd-hook
+++ b/systemd-hook
@@ -17,7 +17,7 @@ systemd_live() {
udevd_live() {
is_chrooted
- if [ ! -d /run/udev ]; then
+ if [ ! -S /run/udev/control ]; then
echo >&2 " Skipped: Device manager is not running."
exit 0
fi
@@ -49,8 +49,10 @@ case "$op" in
udev-reload)
udevd_live
/usr/bin/udevadm control --reload
- /usr/bin/udevadm trigger
- /usr/bin/udevadm settle
+ if [ ! -e /etc/systemd/do-not-udevadm-trigger-on-update ]; then
+ /usr/bin/udevadm trigger -c change
+ /usr/bin/udevadm settle
+ fi
;;
binfmt)
systemd_live