mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
ppp-on-up: run scripts if available
This commit is contained in:
parent
1cd7679a07
commit
63406dafbe
1 changed files with 11 additions and 0 deletions
11
ppp-on-up
11
ppp-on-up
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue