aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-04 20:29:42 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-04 20:29:42 +0100
commit63406dafbe67ea1b5445cefcd1043fa69d1e20c9 (patch)
tree3482e731fc061cb5ef7f7f68a0c2686bec58a37b
parent1cd7679a07014ff0f801fd3732318fad4bd130c8 (diff)
ppp-on-up: run scripts if available
-rw-r--r--ppp-on-up11
1 files changed, 11 insertions, 0 deletions
diff --git a/ppp-on-up b/ppp-on-up
index af99af1..f270847 100644
--- a/ppp-on-up
+++ b/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;
+ }
+}