diff options
author | Thomas Bächler <thomas@archlinux.org> | 2008-09-18 18:55:14 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2008-09-18 18:55:14 +0200 |
commit | 8f1628613cc5746b7c85c6f84776b365833f1dad (patch) | |
tree | e6dde4f831171de7af4eac6d6912da8665132dc8 /rc.single | |
parent | ce600eea3b9383f167cb91d784aff04821fa0528 (diff) |
Respawn udev properly when running 'init s'. Fixes #97392008.09-1
Diffstat (limited to 'rc.single')
-rwxr-xr-x | rc.single | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -34,15 +34,15 @@ if [ "$PREVLEVEL" != "N" ]; then /bin/sleep 1 stat_done - if [ -x /etc/start_udev -a -d /sys/block ]; then - # We have a start_udev script and /sys appears to be mounted, use UDev - status "Starting UDev Daemon" /etc/start_udev - if [ "$(/bin/pidof -o %PPID /sbin/udevd)" ]; then - # If an old udevd is kicking around, we'll have to remount pts and shm - /bin/umount /dev/shm /dev/pts >/dev/null 2>&1 - /bin/mount /dev/pts - /bin/mount /dev/shm - fi + if [ -x /sbin/udevadm -a -d /sys/block ]; then + # We have udev and /sys appears to be mounted, use UDev + stat_busy "Starting UDev Daemon" + /sbin/udevd --daemon + stat_done + stat_busy "Loading UDev uevents" + /sbin/udevadm trigger + /sbin/udevadm settle + stat_done else # Static /dev, our last resort status "Using static /dev filesystem" /bin/true |