aboutsummaryrefslogtreecommitdiffstats
path: root/ppp-on-up
blob: 761154a28cc2012bc8e995b4d4e14b812432168d (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!rsc
# RouterOS script: ppp-on-up
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de>
#
# run scripts on ppp up

# variable $interface is available in ppp on-up script
:local Interface $interface;
:local DhcpClient [ / ipv6 dhcp-client find where interface=$Interface ];

:if ([ :len $DhcpClient ] > 0) do={
  / ipv6 dhcp-client disable $DhcpClient;
  :delay 1s;
  / ipv6 dhcp-client enable $DhcpClient;
}