summaryrefslogtreecommitdiff
path: root/daemons/rc.sh
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-17 19:35:49 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-17 19:35:49 +0000
commit45efc0d86a49a7c67bac9f797f392c40df6d9268 (patch)
tree14330df3bf87c48a2878b42174c4c4f56b7286f0 /daemons/rc.sh
parent00de2bd686de19189a98fa8e152955c595d166b7 (diff)
Clean /var/run and make utmp.
Diffstat (limited to 'daemons/rc.sh')
-rw-r--r--daemons/rc.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/daemons/rc.sh b/daemons/rc.sh
index c311b829..30814d48 100644
--- a/daemons/rc.sh
+++ b/daemons/rc.sh
@@ -56,13 +56,11 @@ fi
# Until new hostname functions are in place
test -r /etc/hostname && hostname `cat /etc/hostname`
-echo -n cleaning lock files...
+echo -n cleaning up left over files...
rm -f /etc/nologin
rm -f /var/lock/LCK.*
-echo done
-
-echo -n clearing /tmp...
(cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; )
+(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
echo done
echo -n restoring pty permissions...