aboutsummaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorMartin Cracauer <cracauer@FreeBSD.org>1998-09-07 17:18:36 +0000
committerMartin Cracauer <cracauer@FreeBSD.org>1998-09-07 17:18:36 +0000
commite0b8e0b8f2f63f0ebe0561d58d6893ca52a6a176 (patch)
treee12a716ffb6263c09e211d830d80758793a90657 /etc/rc
parent23f8fb3d1e335647e09a73dee577e977533815a4 (diff)
downloadsrc-e0b8e0b8f2f63f0ebe0561d58d6893ca52a6a176.tar.gz
src-e0b8e0b8f2f63f0ebe0561d58d6893ca52a6a176.zip
Remove X11 lock files at boot time even if $clear_tmp_enable is not set.
PR: conf/7366 Submitted by: Thomas David Rivers rivers@dignus.com
Notes
Notes: svn path=/head/; revision=38915
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 02af8df9ea0d..da2974688f50 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.151 1998/08/24 07:11:48 gpalmer Exp $
+# $Id: rc,v 1.152 1998/09/05 04:27:35 jdp Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -166,11 +166,12 @@ if [ "X${clear_tmp_enable}" = X"YES" ]; then
(cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;)
- # Also remove X lock files since it will prevent you from
- # restarting X11 after a system crash.
- rm -f /tmp/.X*-lock /tmp/.X11-unix/*
fi
+# Remove X lock files, since they will prevent you from restarting X11
+# after a system crash.
+rm -f /tmp/.X*-lock /tmp/.X11-unix/*
+
# snapshot any kernel -c changes back to disk
echo 'recording kernel -c changes'
dset -q