diff options
author | Martin Cracauer <cracauer@FreeBSD.org> | 1998-09-07 17:18:36 +0000 |
---|---|---|
committer | Martin Cracauer <cracauer@FreeBSD.org> | 1998-09-07 17:18:36 +0000 |
commit | e0b8e0b8f2f63f0ebe0561d58d6893ca52a6a176 (patch) | |
tree | e12a716ffb6263c09e211d830d80758793a90657 /etc/rc | |
parent | 23f8fb3d1e335647e09a73dee577e977533815a4 (diff) | |
download | src-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/rc | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |