Re: How to run script on network address change?

From: Rozhuk Ivan <rozhuk.im_at_gmail.com>
Date: Tue, 22 Jun 2021 19:04:16 +0300
On Tue, 22 Jun 2021 09:52:18 -0600
Warner Losh <wlosh_at_bsdimp.com> wrote:

> These two patches appear to be good (I’ll need to do a little testing)
> 
> But, can you update devd.conf(5) man page to include these new events
> in the IFNET section? If so, I’ll land this in the tree...
> 

This is updated version, they add param name for last arg, so:
"!system=IFNET subsystem=lan0 type=RENAME lan1" -> "!system=IFNET subsystem=lan0 type=RENAME name=lan1"
"!system=IFNET subsystem=lan0 type=ADDR_ADD 192.168.1.1" -> "!system=IFNET subsystem=lan0 type=ADDR_ADD address=192.168.1.1"

https://reviews.freebsd.org/D30839

https://reviews.freebsd.org/D30840

Received on Tue Jun 22 2021 - 16:04:16 UTC

Original text of this message