mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
ppp-on-up: run scripts if available
This commit is contained in:
@@ -15,3 +15,14 @@
|
||||
:delay 1s;
|
||||
/ ipv6 dhcp-client enable $DhcpClient;
|
||||
}
|
||||
|
||||
:local Scripts {
|
||||
"update-tunnelbroker"
|
||||
}
|
||||
|
||||
:foreach Script in=$Scripts do={
|
||||
:if ([ / system script print count-only where name=$Script ] > 0) do={
|
||||
:log debug ("Running script from ppp-on-up: " . $Script);
|
||||
/ system script run $Script;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user