Re: How to run script on network address change?
- Reply: Crest : "Re: How to run script on network address change?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Jun 2021 16:37:44 UTC
On Sun, 20 Jun 2021 16:23:38 +0200 "dmilith ." <dmilith@gmail.com> wrote: > Have you tried `route monitor`? No, and I do not want keep running some daemon that will parse output. But thanks, I found good place to add devctl_notify() calls. Now devd have new events. run: ifconfig lan0 alias 192.168.1.1/24 ifconfig lan0 -alias 192.168.1.1 ifconfig lan0 inet6 1111:: devd output: !system=IFNET subsystem=lan0 type=ADDR_ADD 192.168.1.1 !system=IFNET subsystem=lan0 type=ADDR_DEL 192.168.1.1 !system=IFNET subsystem=lan0 type=ADDR_ADD 1111:: And even for netif rename: ifconfig lan0 name lan1 ifconfig lan1 name lan0 devd output: !system=IFNET subsystem=lan0 type=RENAME lan1 !system=IFNET subsystem=lan1 type=RENAME lan0