From 0abb9a1848aa63458d8604968dc9d72b3382686e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 4 Jan 2019 20:30:17 +0100 Subject: ppp-on-up: just release ipv6 lease This should get a new lease immediately. --- ppp-on-up | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ppp-on-up b/ppp-on-up index f270847..629e340 100644 --- a/ppp-on-up +++ b/ppp-on-up @@ -9,12 +9,7 @@ :local IntName [ / interface get $Interface name ]; :log info ("PPP interface " . $IntName . " is up."); -:local DhcpClient [ / ipv6 dhcp-client find where interface=$IntName ]; -:if ([ :len $DhcpClient ] > 0) do={ - / ipv6 dhcp-client disable $DhcpClient; - :delay 1s; - / ipv6 dhcp-client enable $DhcpClient; -} +/ ipv6 dhcp-client release [ find where interface=$IntName !disabled ]; :local Scripts { "update-tunnelbroker" -- cgit v1.2.3-54-g00ecf