From 8f1628613cc5746b7c85c6f84776b365833f1dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Thu, 18 Sep 2008 18:55:14 +0200 Subject: Respawn udev properly when running 'init s'. Fixes #9739 --- rc.single | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'rc.single') diff --git a/rc.single b/rc.single index f32e373..61cbdc7 100755 --- a/rc.single +++ b/rc.single @@ -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 -- cgit v1.2.3