Page MenuHomeFreeBSD

rc.subr: Introduce startmsg
ClosedPublic

Authored by jlduran_gmail.com on Mar 10 2022, 12:34 AM.
Tags
Referenced Files
Unknown Object (File)
Mar 13 2024, 12:33 AM
Unknown Object (File)
Mar 7 2024, 7:52 PM
Unknown Object (File)
Dec 20 2023, 5:42 AM
Unknown Object (File)
Dec 12 2023, 5:00 PM
Unknown Object (File)
Nov 1 2023, 10:08 PM
Unknown Object (File)
Jun 24 2023, 8:21 AM
Unknown Object (File)
Jun 23 2023, 5:07 PM
Unknown Object (File)
Mar 5 2023, 5:32 PM
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_gmail.com 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