1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00
Christian Hesse e1f134ead5 add scripts
2018-07-05 15:34:08 +02:00

14 lines
379 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;
}