67 |
[ ! -c /dev/tty1 ] && mknod /dev/tty1 c 4 1 |
[ ! -c /dev/tty1 ] && mknod /dev/tty1 c 4 1 |
68 |
[ ! -c /dev/null ] && mknod /dev/null c 1 3 |
[ ! -c /dev/null ] && mknod /dev/null c 1 3 |
69 |
|
|
70 |
|
# create kmsg too, so udev can add its start-message to dmesg |
71 |
|
[ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11 |
72 |
|
|
73 |
# copy over any persistant things |
# copy over any persistant things |
74 |
if [[ -d /lib/udev/devices ]] |
if [[ -d /lib/udev/devices ]] |
75 |
then |
then |
101 |
fstype=ramfs |
fstype=ramfs |
102 |
# tmpfs was suggested by Greg Kroah-Hartman |
# tmpfs was suggested by Greg Kroah-Hartman |
103 |
kernel_supports_fs tmpfs && fstype=tmpfs |
kernel_supports_fs tmpfs && fstype=tmpfs |
104 |
|
# mount devtmpfs if supported |
105 |
|
kernel_supports_fs devtmpfs && fstype=devtmpfs |
106 |
mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755,size=10M |
mount -n -t ${fstype} udev /dev -o exec,nosuid,mode=0755,size=10M |
107 |
evaluate_retval |
evaluate_retval |
108 |
|
|
159 |
# same thing as /dev/.devfsd |
# same thing as /dev/.devfsd |
160 |
touch /dev/.udev |
touch /dev/.udev |
161 |
} |
} |
162 |
|
|
163 |
|
stop_udev() |
164 |
|
{ |
165 |
|
echo -e ${COLOREDSTAR}" Stopping udevd daemon ..." |
166 |
|
start-stop-daemon --stop --exec /sbin/udevd |
167 |
|
evaluate_retval |
168 |
|
} |