summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-07 10:55:34 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-07 10:55:34 +0100
commit3c6a2fab7e5a347d92bba152dca367fcbfabc3a6 (patch)
tree7264e38d25432b82d9b5dcaf32e1fff76a695b00 /init
parent6390dacd274faa6d960aa67d342a10a5388ef98f (diff)
downloadmkinitcpio-3c6a2fab7e5a347d92bba152dca367fcbfabc3a6.tar.gz
mkinitcpio-3c6a2fab7e5a347d92bba152dca367fcbfabc3a6.tar.xz
Settle remaining uevents before killing udevd
Diffstat (limited to 'init')
-rw-r--r--init2
1 files changed, 2 insertions, 0 deletions
diff --git a/init b/init
index 508c473..cfa6c75 100644
--- a/init
+++ b/init
@@ -103,6 +103,8 @@ fi
#Special handling if udev is running
udevpid=$(/bin/pidof udevd)
if [ -n "${udevpid}" ]; then
+ # Settle pending uevents, then kill udev
+ /sbin/udevadm settle
/bin/kill -9 ${udevpid} > /dev/null 2>&1
/bin/sleep 0.01
fi