Page MenuHomeFreeBSD

rc.subr: Introduce startmsg
ClosedPublic

Authored by jlduran_gmail.com on Mar 10 2022, 12:34 AM.
Tags
Referenced Files
F97130120: D34513.diff
Fri, Sep 27, 9:24 PM
Unknown Object (File)
Tue, Sep 24, 6:10 AM
Unknown Object (File)
Wed, Sep 18, 12:18 AM
Unknown Object (File)
Fri, Sep 13, 1:27 AM
Unknown Object (File)
Mon, Sep 2, 1:55 PM
Unknown Object (File)
Fri, Aug 30, 7:05 AM
Unknown Object (File)
Aug 23 2024, 9:51 PM
Unknown Object (File)
Aug 19 2024, 3:00 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_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