summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/motd
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-06-23 04:46:54 +0000
committermtm <mtm@FreeBSD.org>2008-06-23 04:46:54 +0000
commita12ffbbd8b36c6672bd6c89e5a538d2678caa9aa (patch)
treebc1266247fd858c69b6e861ee154d01d8f866893 /etc/rc.d/motd
parentab11d78bfd2622cce4e516f6384f6ac9d92cae9a (diff)
downloadFreeBSD-src-a12ffbbd8b36c6672bd6c89e5a538d2678caa9aa.zip
FreeBSD-src-a12ffbbd8b36c6672bd6c89e5a538d2678caa9aa.tar.gz
Move a lot of diagnostic output behind $rc_quiet in scripts that
implement their own start command.
Diffstat (limited to 'etc/rc.d/motd')
-rwxr-xr-xetc/rc.d/motd6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/motd b/etc/rc.d/motd
index ddd55f9..0b6707a 100755
--- a/etc/rc.d/motd
+++ b/etc/rc.d/motd
@@ -22,13 +22,13 @@ motd_start()
# Must be done *before* interactive logins are possible
# to prevent possible race conditions.
#
- echo -n 'Updating motd'
+ [ -z "${rc_quiet}" ] && echo -n 'Updating motd:'
if [ ! -f /etc/motd ]; then
install -c -o root -g wheel -m ${PERMS} /dev/null /etc/motd
fi
if [ ! -w /etc/motd ]; then
- echo ' ... /etc/motd is not writable, update failed.'
+ echo ' /etc/motd is not writable, update failed.'
return
fi
@@ -42,7 +42,7 @@ motd_start()
}
rm -f $T
- echo .
+ [ -z "${rc_quiet}" ] && echo .
}
load_rc_config $name
OpenPOWER on IntegriCloud