From 63406dafbe67ea1b5445cefcd1043fa69d1e20c9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 4 Jan 2019 20:29:42 +0100 Subject: ppp-on-up: run scripts if available --- ppp-on-up | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; + } +} -- cgit v1.2.3-54-g00ecf