mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 10:15:05 +02:00
add scripts
This commit is contained in:
parent
1d99dc38ff
commit
e1f134ead5
28 changed files with 842 additions and 0 deletions
13
ppp-on-up
Normal file
13
ppp-on-up
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue