aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-04-24 20:45:08 +0200
committerTom Gundersen <teg@jklm.no>2011-04-24 18:47:21 +0200
commitcd0ec05a9682ccaaf8d288ab4685edf1c311ec8f (patch)
tree7247432e7e9364987b90326eae833bc0a0771687 /rc.sysinit
parent81489b747d718e80cd0a6115616602ef4137fc40 (diff)
downloadinitscripts-cd0ec05a9682ccaaf8d288ab4685edf1c311ec8f.tar.xz
pidof: don't use -o %PPID
No need to ommit the parent process, as it's name will not coincide with udevd. Original-patch-by: David Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.sysinit b/rc.sysinit
index e102beb..0dd644e 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -88,7 +88,7 @@ status "Starting UDev Daemon" /sbin/udevd --daemon
run_hook sysinit_udevlaunched
# Trigger udev uevents
-if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
+if /bin/pidof /sbin/udevd >/dev/null; then
stat_busy "Triggering UDev uevents"
/sbin/udevadm trigger --action=add --type=devices
/sbin/udevadm trigger --action=add --type=subsystems
@@ -103,7 +103,7 @@ fi
unset mods
# Wait for udev uevents
-if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
+if /bin/pidof /sbin/udevd >/dev/null; then
status "Waiting for UDev uevents to be processed" \
/sbin/udevadm settle --quiet --timeout=${UDEV_TIMEOUT:-30}
fi