dhcp6: notify radvd when obtaining a lease

Otherwise, no networks are announced
This commit is contained in:
Michael Stapelberg 2018-06-15 09:28:41 +02:00
parent a1c4d60666
commit 48fcf2d0ea

View File

@ -54,6 +54,9 @@ func logic() error {
if err := notify.Process("/user/netconfi", syscall.SIGUSR1); err != nil {
log.Printf("notifying netconfig: %v", err)
}
if err := notify.Process("/user/radvd", syscall.SIGUSR1); err != nil {
log.Printf("notifying radvd: %v", err)
}
select {
case <-time.After(time.Until(c.Config().RenewAfter)):
// fallthrough and renew the DHCP lease