aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit10
1 files changed, 6 insertions, 4 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 45cc5e22..a0ea9fbf 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -291,10 +291,6 @@ fi
# Clean out /etc.
rm -f /etc/mtab~ /fastboot /fsckoptions /forcefsck
->/var/run/utmp
-touch /var/log/wtmp
-chgrp utmp /var/run/utmp /var/log/wtmp
-chmod 0664 /var/run/utmp /var/log/wtmp
# Clean up /var
# I'd use find, but /usr may not be mounted.
@@ -306,6 +302,12 @@ for afile in /var/lock/* /var/run/*; do
fi
done
+# Clean up utmp/wtmp
+>/var/run/utmp
+touch /var/log/wtmp
+chgrp utmp /var/run/utmp /var/log/wtmp
+chmod 0664 /var/run/utmp /var/log/wtmp
+
# Delete X locks
rm -f /tmp/.X*-lock