summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/cleartmp
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/cleartmp')
-rwxr-xr-xetc/rc.d/cleartmp7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp
index 676ce95..86a7c7e 100755
--- a/etc/rc.d/cleartmp
+++ b/etc/rc.d/cleartmp
@@ -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
OpenPOWER on IntegriCloud