summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorcracauer <cracauer@FreeBSD.org>1998-09-07 17:18:36 +0000
committercracauer <cracauer@FreeBSD.org>1998-09-07 17:18:36 +0000
commitfd49b92e04eb23f2b4dd59262095b8ca551a6725 (patch)
tree3f7c666f741f33372dcecf899700d1933537d05c /etc
parent3e2891d9937473cab148fc78ec1bbd8e0a99ad2b (diff)
downloadFreeBSD-src-fd49b92e04eb23f2b4dd59262095b8ca551a6725.zip
FreeBSD-src-fd49b92e04eb23f2b4dd59262095b8ca551a6725.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/rc9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 02af8df..da29746 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
OpenPOWER on IntegriCloud