mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-31 00:04:28 +02: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…
Add table
Add a link
Reference in a new issue