diff options
author | Bill Nottingham <notting@redhat.com> | 1999-06-14 14:44:11 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-06-14 14:44:11 +0000 |
commit | 5a91ea94fda39aa17a742d720eb2de9adf33a3c4 (patch) | |
tree | 7294aca9cf1f93f344ba8c7c86756ae7e6115b67 /rc.d | |
parent | 98ac61c5e351c23e5bc2cad35fa6f992a6c6387c (diff) | |
download | initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar.gz initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar.bz2 initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.tar.xz initscripts-5a91ea94fda39aa17a742d720eb2de9adf33a3c4.zip |
um, it makes very little sense to touch /var/run/utmp and promptly remove it.
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 10 |
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 |