Re: hostname.pppoe0, !/bin/sh when reconnecting

2020-06-19 Thread Lévai , Dániel
Thanks everyone for their reply and the pointer to ifstated(8)! For the archives; this simple configuration did the trick: == 8< == state if_up { init { run "/usr/local/sbin/dyndnsupdate.sh" } if pppoe0.link.down { run "/usr/bin/logger -p daemon.warn -i -

Re: hostname.pppoe0, !/bin/sh when reconnecting

2020-06-17 Thread Stuart Henderson
On 2020-06-17, Christian Weisgerber wrote: > On 2020-06-17, Lévai, Dániel wrote: > >> I'm trying to run a script whenever I get a new IP address from my ISP over >> pppoe0. They disconnect me occasionally and the router reconnects then, eg.: >> /bsd: pppoe: GENERIC ERROR: RP-PPPoE: Child pppd pr

Re: hostname.pppoe0, !/bin/sh when reconnecting

2020-06-17 Thread Olivier Taïbi
I am in a similar situation (pppoe sessions restarts, although my IP addresses do not change), and I needed to re-add the default IPv6 route after completion of IPv6CP. Note that there are several layers involved (link, IPv4, IPv6), I would guess that for pppoe "link is up" would mean LCP succeede

Re: hostname.pppoe0, !/bin/sh when reconnecting

2020-06-17 Thread Christian Weisgerber
On 2020-06-17, Lévai, Dániel wrote: > I'm trying to run a script whenever I get a new IP address from my ISP over > pppoe0. They disconnect me occasionally and the router reconnects then, eg.: > /bsd: pppoe: GENERIC ERROR: RP-PPPoE: Child pppd process terminated > /bsd: pppoe0: received unexpect

hostname.pppoe0, !/bin/sh when reconnecting

2020-06-17 Thread Lévai , Dániel
Hi misc@! I'm trying to run a script whenever I get a new IP address from my ISP over pppoe0. They disconnect me occasionally and the router reconnects then, eg.: /bsd: pppoe: GENERIC ERROR: RP-PPPoE: Child pppd process terminated /bsd: pppoe0: received unexpected PADO last message repeated 2 tim