revert udev change

This commit is contained in:
Tobias Powalowski 2009-09-08 18:06:21 +02:00
parent 6a1b940dba
commit 6ab61fff56
2 changed files with 22 additions and 6 deletions

View file

@ -3,8 +3,28 @@ run_hook ()
{
# mount tmpfs, else autodetection will fail!
mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
# Copy static device nodes to /dev
cp -a /lib/udev/devices/* /dev/
#create missing nodes
mknod -m 0666 /dev/null c 1 3
mknod -m 0660 /dev/zero c 1 5
mknod -m 0600 /dev/console c 5 1
mknod -m 0666 /dev/kmsg c 1 11
# make extra nodes
ln -sf /proc/self/fd /dev/fd
ln -sf /proc/self/fd/0 /dev/stdin
ln -sf /proc/self/fd/1 /dev/stdout
ln -sf /proc/self/fd/2 /dev/stderr
ln -sf /proc/kcore /dev/core
# these static devices are created for convenience, to autoload the modules if necessary
# /dev/loop0
mknod -m 0660 /dev/loop0 b 7 0
chgrp disk /dev/loop0
# /dev/net/tun
mkdir /dev/net
mknod -m 0666 /dev/net/tun c 10 200
# /dev/fuse
mknod -m 0666 /dev/fuse c 10 229
# /dev/ppp
mknod -m 0600 /dev/ppp c 108 0
echo > /proc/sys/kernel/hotplug
msg -n ":: Starting udevd..."
/sbin/udevd --daemon

View file

@ -50,10 +50,6 @@ install ()
for i in /lib/udev/keymaps/*; do
add_file "$i"
done
# add device nodes
for i in $(find /lib/udev/devices/*); do
add_file "$i"
done
}
help ()