1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00
Christian Hesse 07e54dd88b add empty comment at first line...
... for better formatting in export.
2018-08-24 16:58:30 +02:00

15 lines
381 B
Plaintext

#
# 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;
}