summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-18 11:47:54 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2007-12-12 10:27:39 -0600
commit662a52c15343338e9d843c6f70d39acefd3a2c4c (patch)
tree10459317d7f3df1c9fb8de0156b5a34da1c77b3e
parentb1d0ec7cb6e8cea9f2fd7b0c11a0b607467615bd (diff)
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 <dan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xrc.sysinit20
1 files changed, 15 insertions, 5 deletions
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