aboutsummaryrefslogtreecommitdiffstats
path: root/ppp-on-up
diff options
context:
space:
mode:
Diffstat (limited to 'ppp-on-up')
-rw-r--r--ppp-on-up9
1 files changed, 5 insertions, 4 deletions
diff --git a/ppp-on-up b/ppp-on-up
index 2887e49..761154a 100644
--- a/ppp-on-up
+++ b/ppp-on-up
@@ -5,10 +5,11 @@
# run scripts on ppp up
# variable $interface is available in ppp on-up script
-:local dhcpclient [ / ipv6 dhcp-client find where interface=$interface ];
+:local Interface $interface;
+:local DhcpClient [ / ipv6 dhcp-client find where interface=$Interface ];
-:if ( [ :len $dhcpclient ] > 0) do={
- / ipv6 dhcp-client disable $dhcpclient;
+:if ([ :len $DhcpClient ] > 0) do={
+ / ipv6 dhcp-client disable $DhcpClient;
:delay 1s;
- / ipv6 dhcp-client enable $dhcpclient;
+ / ipv6 dhcp-client enable $DhcpClient;
}