]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
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>
Wed, 22 Feb 2023 12:27:16 +0000 (13:27 +0100)
commit8f2bb173bfc6e1a03a56b5098f8d2af740ce743f
treef027fab2d73209ba57acc6a6ff5a622151ac5f41
parent8c2eeb1c1cd67accad434303bc9f2cd6ec401733
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

(cherry picked from commit 325ebf37d8efc6488754051fcc2b1aaa40cefd8b)
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