summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-15 21:27:17 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-15 21:27:17 +0000
commit9f98d3df1b584b0538aa0b3e9931a50b17ba5e6f (patch)
treefdc58083b4c9d4b6841721202b891970c5540bd0 /daemons
parent4d22d620e90a8245398963b705a35a2a260d74a7 (diff)
Create /var/run/uptime *after* clearing /var/run. Always create
/var/run/mtab to keep e2fsck happy.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/rc.sh8
1 files 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