dhcp6c subscribe to ppp ifindex
when the peer bounces ppp, s6 will restart the ppp process but not restart the dependent services (because the service isn't considered to have gone down) so the dependent services need to notice when the outputs from ppp have changed
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
(fn run []
|
||||
(let [[state-directory wan-device] arg
|
||||
dir (svc.open state-directory)]
|
||||
(update-addresses wan-device [] (or (dir:output "address") []) system)
|
||||
(accumulate [addresses []
|
||||
v (dir:events)]
|
||||
(update-addresses wan-device addresses (or (v:output "address") []) system))))
|
||||
|
Reference in New Issue
Block a user