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

# variable $interface is available in ppp on-up script
: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;
}