aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-04 20:30:17 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-04 20:32:14 +0100
commit0abb9a1848aa63458d8604968dc9d72b3382686e (patch)
tree187f82e9ab3aa391bb351f1f854c42018b75b991
parent63406dafbe67ea1b5445cefcd1043fa69d1e20c9 (diff)
ppp-on-up: just release ipv6 lease
This should get a new lease immediately.
-rw-r--r--ppp-on-up7
1 files changed, 1 insertions, 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"