diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-08-30 21:11:39 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-08-30 21:11:39 -0500 |
commit | 119b8df1fb1258231750309f01e747e72f382493 (patch) | |
tree | bbe13ae583240301d4157d2984a42d0aa6e7b5f5 /rc.sysinit | |
parent | d2ae38c8b06d057c7593b7ba836bf24a1f8f6c4f (diff) |
Create udev required device nodes if missing
Udev requires /dev/console, /dev/null, and /dev/zero to exist
before running. Create these on init if they're missing
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -75,6 +75,11 @@ 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 + #Create these required device nodes if they're missing + [ -f /dev/console ] || /bin/mknod /dev/console c 5 1 + [ -f /dev/null ] || /bin/mknod -m 666 /dev/null c 1 3 + [ -f /dev/zero ] || /bin/mknod -m 666 /dev/zero c 1 5 + stat_busy "Starting UDev Daemon" /sbin/udevd --daemon stat_done |