mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-07 11:44:45 +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;
|
:delay 1s;
|
||||||
/ ipv6 dhcp-client enable $DhcpClient;
|
/ 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