diff options
author | mtm <mtm@FreeBSD.org> | 2008-06-23 04:42:58 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-06-23 04:42:58 +0000 |
commit | ab11d78bfd2622cce4e516f6384f6ac9d92cae9a (patch) | |
tree | 1d5b1d724ccbd0f3a9093f9176614d5a1a54fe37 /etc | |
parent | fd5ad8945d25601441e3807b4b1dbe992659bc5e (diff) | |
download | FreeBSD-src-ab11d78bfd2622cce4e516f6384f6ac9d92cae9a.zip FreeBSD-src-ab11d78bfd2622cce4e516f6384f6ac9d92cae9a.tar.gz |
Align the script more with rc.d/cleanvar (which doesn't output any
diagnostics). Instead, move output behind $rc_quiet.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/cleartmp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp index e3588f1..a41a15e 100755 --- a/etc/rc.d/cleartmp +++ b/etc/rc.d/cleartmp @@ -25,7 +25,7 @@ cleartmp_start() ${tmp}/.ICE-unix ${tmp}/.font-unix" if checkyesno ${rcvar1}; then - echo "Clearing ${tmp}." + [ -z "${rc_quiet}" ] && echo "Clearing ${tmp}." # This is not needed for mfs, but doesn't hurt anything. # Things to note: @@ -44,7 +44,7 @@ cleartmp_start() elif checkyesno clear_tmp_X; then # Remove X lock files, since they will prevent you from # restarting X. Remove other X related directories. - echo "Clearing ${tmp} (X related)." + [ -z "${rc_quiet}" ] && echo "Clearing ${tmp} (X related)." rm -rf ${tmp}/.X[0-9]-lock ${x11_socket_dirs} fi if checkyesno clear_tmp_X; then |