Page MenuHomeFreeBSD

rc scripts vs. .pkgsave
AbandonedPublic

Authored by me_igalic.co on Dec 30 2020, 2:46 PM.

Details

Summary

Draft of something Mina asked for on IRC.

Test Plan

Not yet tested at all.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

this almost works ๐Ÿ˜ฌ

libexec/rc/rc.subr
2048

this only works after adding changing it to:

libexec/rc/rc.subr
2048
case "${file##*/}" in

to avoid the superfluous fork

Abandoning; Mina has taken this over in D27962

me_igalic.co edited reviewers, added: andrew_tao173.riddles.org.uk; removed: me_igalic.co.

i'm getting this message on boot / shutdown:

Jan  6 15:59:08 beastix root[3063]: /etc/rc.shutdown: WARNING: Ignoring scratch file /usr/local/etc/rc.d/sddm.bak
Jan  6 21:05:38 beastix root[1387]: /etc/rc: WARNING: Ignoring scratch file /usr/local/etc/rc.d/sddm.bak

and i'm finding this somewhat funny, cuz neither of us noticed .bak files mentioned anywhere.