From 9f98d3df1b584b0538aa0b3e9931a50b17ba5e6f Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 15 Jul 1996 21:27:17 +0000 Subject: Create /var/run/uptime *after* clearing /var/run. Always create /var/run/mtab to keep e2fsck happy. --- daemons/rc.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/daemons/rc.sh b/daemons/rc.sh index b8d40b4f..b113dac1 100644 --- a/daemons/rc.sh +++ b/daemons/rc.sh @@ -42,8 +42,6 @@ then esac fi -touch /var/run/uptime - echo -n cleaning up left over files... rm -f /etc/nologin rm -f /var/lock/LCK.* @@ -55,6 +53,12 @@ if test -d /var/run; then fi echo done +# This file records when the system was booted. +date > /var/run/uptime + +# This file must exist for e2fsck to work. XXX +touch /var/run/mtab + #echo -n restoring pty permissions... #chmod 666 /dev/tty[pqrs]* #echo done -- cgit v1.2.3