From 662a52c15343338e9d843c6f70d39acefd3a2c4c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 18 Nov 2007 11:47:54 -0600 Subject: Move start_udev actions to rc.sysinit start_udev has been deprecated upstream for some time. We shouldn't use some hacked up version of it either. Signed-off-by: Dan McGee Signed-off-by: Aaron Griffin --- rc.sysinit | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 3bf8edc..c79f969 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # /etc/rc.sysinit # @@ -35,9 +35,15 @@ mount -n -t sysfs none /sys /sbin/modprobe usbcore >/dev/null 2>&1 grep -qw usbfs /proc/filesystems && mount -n -t usbfs none /proc/bus/usb -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 init +if [ -x /sbin/udevadm -a -d /sys/block ]; then + # We have udev and /sys appears to be mounted, use UDev + #status "Starting UDev Daemon" /etc/start_udev init + stat_busy "Starting UDev Daemon" + mount -n -t ramfs none /dev + mkdir /dev/pts + mkdir /dev/shm + /sbin/udevd --daemon + stat_done else # Static /dev, our last resort status "Using static /dev filesystem" /bin/true @@ -76,7 +82,11 @@ fi # run udev uevents if pidof -o %PPID /sbin/udevd >/dev/null; then - status "Loading UDev uevents" /etc/start_udev uevents + #status "Loading UDev uevents" /etc/start_udev uevents + stat_busy "Loading UDev uevents" + /sbin/udevadm trigger + /sbin/udevadm settle + stat_done fi # bring up the loopback interface -- cgit v1.2.3