diff options
author | mtm <mtm@FreeBSD.org> | 2003-12-01 16:35:57 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-12-01 16:35:57 +0000 |
commit | 8201fce885ff8e91e8b9e536650132a7740dbe57 (patch) | |
tree | c7201c3d28578d0c7e272d56c4137d8cd74a309f /etc | |
parent | f9e918ac2330ec5a7701fcf2592994d4e8caca2d (diff) | |
download | FreeBSD-src-8201fce885ff8e91e8b9e536650132a7740dbe57.zip FreeBSD-src-8201fce885ff8e91e8b9e536650132a7740dbe57.tar.gz |
When clearing /tmp, X11 lock and temporary files are special.
Remove them unconditionaly.
PR: bin/59065
Approved by: re (scottl)
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/cleartmp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp index e786824..f308401 100755 --- a/etc/rc.d/cleartmp +++ b/etc/rc.d/cleartmp @@ -27,20 +27,20 @@ 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) - - case ${OSTYPE} in - FreeBSD) - # Remove X lock files, since they will prevent you from - # restarting X - # - rm -f /tmp/.X*-lock - rm -fr /tmp/.X11-unix - mkdir -m 1777 /tmp/.X11-unix - ;; - NetBSD) - ;; - esac } load_rc_config $name run_rc_command "$1" + +case ${OSTYPE} in +FreeBSD) + # Remove X lock files, since they will prevent you from + # restarting X + # + rm -f /tmp/.X*-lock + rm -fr /tmp/.X11-unix + mkdir -m 1777 /tmp/.X11-unix + ;; +NetBSD) + ;; +esac |