diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-06-17 19:35:49 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-06-17 19:35:49 +0000 |
commit | 45efc0d86a49a7c67bac9f797f392c40df6d9268 (patch) | |
tree | 14330df3bf87c48a2878b42174c4c4f56b7286f0 /daemons | |
parent | 00de2bd686de19189a98fa8e152955c595d166b7 (diff) |
Clean /var/run and make utmp.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/rc.sh | 6 |
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... |