2018-09-27 00:18:43 +02:00
|
|
|
#!rsc
|
2018-07-05 15:29:26 +02:00
|
|
|
# RouterOS script: ppp-on-up
|
2019-01-01 21:19:19 +01:00
|
|
|
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de>
|
2018-07-05 15:29:26 +02:00
|
|
|
#
|
|
|
|
|
# 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;
|
|
|
|
|
}
|