diff options
author | mtm <mtm@FreeBSD.org> | 2008-06-23 04:46:54 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-06-23 04:46:54 +0000 |
commit | a12ffbbd8b36c6672bd6c89e5a538d2678caa9aa (patch) | |
tree | bc1266247fd858c69b6e861ee154d01d8f866893 /etc/rc.d/motd | |
parent | ab11d78bfd2622cce4e516f6384f6ac9d92cae9a (diff) | |
download | FreeBSD-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-x | etc/rc.d/motd | 6 |
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 |