diff --git a/etc/init/mountfs.conf b/etc/init/mountfs.conf index 165f82d..6d80f52 100644 --- a/etc/init/mountfs.conf +++ b/etc/init/mountfs.conf @@ -41,4 +41,7 @@ script fi done /sbin/ldconfig + if [ -f /var/run/utmp ]; then + cp /dev/null /var/run/utmp + fi end script diff --git a/etc/init/udev.conf b/etc/init/udev.conf index 2afef18..aaaa779 100644 --- a/etc/init/udev.conf +++ b/etc/init/udev.conf @@ -27,9 +27,13 @@ pre-start script /bin/mkdir -p /dev/shm /bin/mkdir -p /dev/pts /bin/mount -n -t tmpfs -o mode=1755 none /dev/shm - /bin/mknod /dev/null c 1 3 + if [ ! -c /dev/null ]; then + /bin/mknod /dev/null c 1 3 + fi /bin/chmod 666 /dev/null - /bin/mknod /dev/console c 5 1 + if [ ! -c /dev/console ]; then + /bin/mknod /dev/console c 5 1 + fi status_message "udev prestart ready" end script