blob: 7940f2a20fe195df7fabbf6f03d08c054061b744 (
plain) (
tree)
|
|
# 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;
}
|