Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Robert Elz
Date:Tue, 12 Apr 2022 12:53:00 +0200 From:Edgar =?iso-8859-1?B?RnXf?= Message-ID: | My (second) question was about patching the binary so it would link to | libc, libm and libpcap from /lib, not /usr/lib. Don't bother, just make /usr/lib (in the root partition,

Re: Proposal: remove usr.bin/mkstr

2022-04-12 Thread Joerg Sonnenberger
Am Tue, Apr 12, 2022 at 07:19:59AM +0700 schrieb Robert Elz: > Can we please just stop wasting everyone's time with this? I'm stopping my participation in this thread here, because it has become completely pointless and frankly, depressing. NetBSD is not a museum, even if it supports hardware that

Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Martin Husemann
On Tue, Apr 12, 2022 at 12:53:00PM +0200, Edgar Fuß wrote: > > Make the script require CRITLOCALMOUNTED (in -current, or mountcritlocal > > in older versions)? > I don't get that. That wouldn't mount /usr, no? Duh, right - I have /usr in critical_filesystems_local on all machines where it is a sep

Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Edgar Fuß
> Make the script require CRITLOCALMOUNTED (in -current, or mountcritlocal > in older versions)? I don't get that. That wouldn't mount /usr, no? My (second) question was about patching the binary so it would link to libc, libm and libpcap from /lib, not /usr/lib. Or would it do that automatically

Re: Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Martin Husemann
On Tue, Apr 12, 2022 at 12:09:40PM +0200, Edgar Fuß wrote: > Alternatively, I could copy na6 to /local/bin (or whatever). It only needs > libc, libpcap and libm, which are all in /lib, but ldd say the binary > references /usr/lib. How do I change that? Make the script require CRITLOCALMOUNTED (i

Checking whether an rc.d script was invoked from rc

2022-04-12 Thread Edgar Fuß
Two probably very basic questions: Is there a way to check whether an rc.d script was invoked from rc (as opposed to running it manually, via service(8) or whatever? During autoboot, rc_fast is set, but if I go single user and back multi user or boot to single user and go multi user from there,