From 45efc0d86a49a7c67bac9f797f392c40df6d9268 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 17 Jun 1996 19:35:49 +0000 Subject: Clean /var/run and make utmp. --- daemons/rc.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'daemons') 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... -- cgit v1.2.3