Introduce startmsg and use it in rc scripts
authorJose Luis Duran <jlduran@gmail.com>
Sun, 13 Mar 2022 17:48:06 +0000 (18:48 +0100)
committerMateusz Piotrowski <0mp@FreeBSD.org>
Sun, 13 Mar 2022 17:57:29 +0000 (18:57 +0100)
commit325ebf37d8efc6488754051fcc2b1aaa40cefd8b
tree37a7adafa90b752fc9190ea388e9a8ef6b8016fe
parente83a53abeb90258206285be517af2f2045caa78b
Introduce startmsg and use it in rc scripts

startmsg is a new rc.subr(8) function function to be used instead of
echo(1) when for boot messages. It replaces the often forgotten

    check_startmsgs && echo ...

with

    startmsg ...

No functional change intended.

I adjusted the commit message and did some final clean-ups of the patch
before committing.

PR: 255207
Reported by: Jose Luis Duran <jlduran@gmail.com>
Reviewed by: imp, 0mp
Approved by: imp (src)
Differential Revision: https://reviews.freebsd.org/D34514
16 files changed:
libexec/rc/rc.d/bgfsck
libexec/rc/rc.d/cleartmp
libexec/rc/rc.d/fsck
libexec/rc/rc.d/hostid
libexec/rc/rc.d/hostname
libexec/rc/rc.d/ldconfig
libexec/rc/rc.d/motd
libexec/rc/rc.d/mountcritlocal
libexec/rc/rc.d/moused
libexec/rc/rc.d/newsyslog
libexec/rc/rc.d/nfsclient
libexec/rc/rc.d/os-release
libexec/rc/rc.d/pf
libexec/rc/rc.d/savecore
libexec/rc/rc.subr
share/man/man8/rc.subr.8