Fix another braino, don't remove the X related socket directories

right after creating them.

Twiddle whitespace while I'm here.
This commit is contained in:
Doug Barton 2005-12-27 23:22:18 +00:00
parent eeb92ff283
commit cc41555849

View File

@ -18,7 +18,8 @@ cleartmp_prestart()
{
checkyesno clear_tmp_X || return
local x11_socket_dirs="/tmp/.X11-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/.XIM-unix"
local x11_socket_dirs="/tmp/.X11-unix /tmp/.ICE-unix /tmp/.font-unix \
/tmp/.XIM-unix"
# Remove X lock files, since they will prevent you from restarting X.
rm -f /tmp/.X[0-9]-lock
@ -40,7 +41,9 @@ cleartmp_start()
#
(cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
find -x . ! -name . ! -name lost+found ! -name quota.user \
! -name quota.group -exec rm -rf -- {} \; -type d -prune)
! -name quota.group ! -name .X11-unix ! -name .ICE-unix \
! -name .font-unix ! -name .XIM-unix \
-exec rm -rf -- {} \; -type d -prune)
}
load_rc_config $name