aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit14
1 files changed, 1 insertions, 13 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a0b2971b..f0a2b31c 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -292,6 +292,7 @@ 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.
for afile in /var/lock/* /var/run/*; do
if [ -d $afile ]; then
rm -f $afile/*
@@ -300,19 +301,6 @@ for afile in /var/lock/* /var/run/*; do
fi
done
-# Delete pam_console lock and refcount files
-#rm -f /var/lock/console.lock
-#rm -f /var/lock/console/*
-
-# Delete UUCP lock files.
-#rm -f /var/lock/LCK*
-
-# Delete stale subsystem files.
-#rm -f /var/lock/subsys/*
-
-# Delete stale pid files
-#rm -f /var/run/*.pid
-
# Delete X locks
rm -f /tmp/.X*-lock