Page MenuHomeFreeBSD

rc.subr: Introduce startmsg
ClosedPublic

Authored by jlduran on Mar 10 2022, 12:34 AM.
Tags
Referenced Files
Unknown Object (File)
Mon, Nov 11, 3:33 AM
Unknown Object (File)
Fri, Nov 1, 12:43 AM
Unknown Object (File)
Oct 9 2024, 2:20 PM
Unknown Object (File)
Sep 27 2024, 11:28 PM
Unknown Object (File)
Sep 27 2024, 11:27 PM
Unknown Object (File)
Sep 27 2024, 11:21 PM
Unknown Object (File)
Sep 27 2024, 9:24 PM
Unknown Object (File)
Sep 24 2024, 6:10 AM
Subscribers

Details

Reviewers
0mp
imp
Group Reviewers
Contributor Reviews (src)
rc
Summary

A simple function to be used instead of echo(1) when starting, specifically, it replaces the --often forgotten-- stanza check_startmsgs && echo on rc files.

No functional change intended.

Suggested in PR 255207.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

0mp requested changes to this revision.Mar 10 2022, 9:38 AM
0mp added a subscriber: 0mp.
0mp added inline comments.
libexec/rc/rc.subr
724

This is missing $@, right?

This revision now requires changes to proceed.Mar 10 2022, 9:38 AM
jlduran added inline comments.
libexec/rc/rc.subr
724

I'll submit some changes later, as this won't work.

Sorry, for a moment I doubted about changing echo -n to printf.

Briefly mention the new function in rc.subr(8).

0mp added inline comments.
share/man/man8/rc.subr.8
946

I'll drop echo(1) from the final commit. It does not really help to have his reference here.

This revision is now accepted and ready to land.Mar 13 2022, 5:49 PM