(solved) Re: rc.local nightmare

2023-10-30 Thread Ramiro Aceves
On 10/30/23 08:25, Michael van Elst wrote: ea1...@gmail.com (Ramiro Aceves) writes: My script says on the console "Network connectivity to $TARGET is OK." several times before the script dies. So ping works fine. (I have set INTERVAL=3 seconds just to speed things up during testing. Your

(solved) Re: rc.local nightmare

2023-10-30 Thread Ramiro Aceves
On 10/30/23 07:50, RVP wrote: On Sun, 29 Oct 2023, Ramiro Aceves wrote: if [ -x /root/nettest ]; then /root/nettest & fi Many thanks RVP for the superb explanation. It works fine now. If I had had to guess it myself, I think I would never have discovered it. Many thanks! Ramiro.

Re: rc.local nightmare

2023-10-30 Thread Michael van Elst
ea1...@gmail.com (Ramiro Aceves) writes: >My script says on the console "Network connectivity to $TARGET is OK." >several times before the script dies. So ping works fine. (I have set >INTERVAL=3 seconds just to speed things up during testing. Your script shouldn't create output from a

Re: rc.local nightmare

2023-10-30 Thread RVP
On Sun, 29 Oct 2023, Ramiro Aceves wrote: if [ -x /root/nettest ]; then /root/nettest & fi Redirect the output of your script somewhere and then it shoould be OK: ``` if [ -x /root/nettest ]; then /root/nettest >/root/nettest.log 2>&1 & fi ``` (Or, use logger(1) on all

Re: rc.local nightmare

2023-10-29 Thread Ramiro Aceves
On 10/29/23 23:59, Brad Spencer wrote: Ramiro Aceves writes: Hi all, [snip] The script works fine if I run manually: #/root/nettest or even If I do this it works fine: #service local restart But If I reboot the machine the script starts during booting but I dies very soon. I do

Re: rc.local nightmare

2023-10-29 Thread Ramiro Aceves
Hi On 10/29/23 20:43, Manuel Bouyer wrote: On Sun, Oct 29, 2023 at 08:39:54PM +0100, Ramiro Aceves wrote: Hi all, I am using a raspberrypi and NetBSD 10-BETA and as we all know the flaky bwfm wifi driver is not very stable. Sometimes network fails and "ifconfig bwfm0 down" and "ifconfig bwfm0

Re: rc.local nightmare

2023-10-29 Thread Brad Spencer
Ramiro Aceves writes: > Hi all, > [snip] > The script works fine if I run manually: > > #/root/nettest > > > or even If I do this it works fine: > > #service local restart > > But If I reboot the machine the script starts during booting but I dies > very soon. > > I do not understand what is

Re: rc.local nightmare

2023-10-29 Thread Manuel Bouyer
On Sun, Oct 29, 2023 at 08:39:54PM +0100, Ramiro Aceves wrote: > Hi all, > > I am using a raspberrypi and NetBSD 10-BETA and as we all know the flaky > bwfm wifi driver is not very stable. Sometimes network fails and "ifconfig > bwfm0 down" and "ifconfig bwfm0 up" does not fix it, so the

rc.local nightmare

2023-10-29 Thread Ramiro Aceves
Hi all, I am using a raspberrypi and NetBSD 10-BETA and as we all know the flaky bwfm wifi driver is not very stable. Sometimes network fails and "ifconfig bwfm0 down" and "ifconfig bwfm0 up" does not fix it, so the raspberrypi remains unreachable from SSH, needing a physical reboot. I have