aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2008-09-18 18:55:14 +0200
committerThomas Bächler <thomas@archlinux.org>2008-09-18 18:55:14 +0200
commit8f1628613cc5746b7c85c6f84776b365833f1dad (patch)
treee6dde4f831171de7af4eac6d6912da8665132dc8 /rc.single
parentce600eea3b9383f167cb91d784aff04821fa0528 (diff)
downloadinitscripts-8f1628613cc5746b7c85c6f84776b365833f1dad.tar.xz
Respawn udev properly when running 'init s'. Fixes #97392008.09-1
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single18
1 files changed, 9 insertions, 9 deletions
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