aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2010-12-05 00:22:45 +0100
committerTom Gundersen <teg@jklm.no>2010-12-06 11:07:40 +0100
commit659cf8c983c46bc17eb167fa513a0697571e945b (patch)
treefeb34b3e72e9e3fed27875df8fb8cd33975e4ea9
parenta7fde2a54bec29b8c56f641c0eca46a24fabda2c (diff)
downloadinitscripts-659cf8c983c46bc17eb167fa513a0697571e945b.tar.xz
udevadm: trigger events of type subsystems as well as devices
The standard type to trigger is devices. This patch makes the type explicit and also triggers events of type subsystems. This is what is done upstream (in udev's systemd service files).
-rwxr-xr-xrc.single3
-rwxr-xr-xrc.sysinit3
2 files changed, 4 insertions, 2 deletions
diff --git a/rc.single b/rc.single
index 2e757d9..4d22cf1 100755
--- a/rc.single
+++ b/rc.single
@@ -20,7 +20,8 @@ if [[ $PREVLEVEL != N ]]; then
if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
stat_busy "Triggering UDev uevents"
/sbin/udevadm control --property=STARTUP=1
- /sbin/udevadm trigger --action=add
+ /sbin/udevadm trigger --action=add --type=devices
+ /sbin/udevadm trigger --action=add --type=subsystems
stat_done
fi
diff --git a/rc.sysinit b/rc.sysinit
index 09d5e97..7826f47 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -87,7 +87,8 @@ run_hook sysinit_udevlaunched
if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
stat_busy "Triggering UDev uevents"
/sbin/udevadm control --property=STARTUP=1
- /sbin/udevadm trigger --action=add
+ /sbin/udevadm trigger --action=add --type=devices
+ /sbin/udevadm trigger --action=add --type=subsystems
stat_done
fi