summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-03-07 20:16:45 +0100
committerThomas Bächler <thomas@archlinux.org>2009-03-07 20:16:45 +0100
commit623e3fac060b0f4b32c0ec767d76ef57f5040ed1 (patch)
tree7a40ac5c0d59a82772d6920a3bf81387f431aa4d
parent666cd9b3971e171f4e8ec348666ab8ff8bfe97d8 (diff)
Use the device nodes from /lib/udev/devices/* instead of hardcoding them in initscripts. This requires a new udev package (at least 139-1)2009.03-1
-rwxr-xr-xrc.sysinit15
1 files changed, 2 insertions, 13 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 67ceb40..c0435a7 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -19,19 +19,8 @@ printsep
/bin/mount -n -t proc none /proc
/bin/mount -n -t sysfs none /sys
-# Create our default nodes that minilogd may need
-/bin/mknod /dev/null c 1 3
-/bin/mknod /dev/zero c 1 5
-/bin/mknod /dev/console c 5 1
-
-# More initial /dev setup that udev doesn't do
-/bin/ln -snf /proc/self/fd /dev/fd
-/bin/ln -snf /proc/self/fd/0 /dev/stdin
-/bin/ln -snf /proc/self/fd/1 /dev/stdout
-/bin/ln -snf /proc/self/fd/2 /dev/stderr
-/bin/ln -snf /proc/kcore /dev/core
-/bin/mkdir /dev/pts
-/bin/mkdir /dev/shm
+# Copy static device nodes to /dev
+/bin/cp -a /lib/udev/devices/* /dev/
# start up our mini logger until syslog takes over
/sbin/minilogd