--- rc.multi.orig 2006-12-11 14:39:21.000000000 +0200 +++ rc.multi 2006-12-11 14:39:41.000000000 +0200 @@ -9,6 +9,22 @@ # Load sysctl variables if sysctl.conf is present [ -r /etc/sysctl.conf ] && /sbin/sysctl -q -p &>/dev/null +if [ "$PREVLEVEL" = "1" ]; then + 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 [ "`pidof -o %PPID /sbin/udevd`" ]; then + # If an old udevd is kicking around, we'll have to remount pts and shm + umount /dev/shm /dev/pts >/dev/null 2>&1 + mount /dev/pts + mount /dev/shm + fi + else + # Static /dev, our last resort + status "Using static /dev filesystem" /bin/true + fi +fi + # Start daemons for daemon in "${DAEMONS[@]}"; do if [ "$daemon" = "${daemon#!}" ]; then