From 9c3f3b9f202c711ec4b525456b7678518e50624e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 9 Oct 2018 13:12:08 +0200 Subject: add global-functions --- README.md | 1 + global-config | 1 + global-functions | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 global-functions diff --git a/README.md b/README.md index bef5e48..947ab4d 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,7 @@ Always make sure there are no certificates installed you do not know or want! Now let's download the main scripts and add them in configuration on the fly. [admin@MikroTik] > / system script add name=global-config source=([ / tool fetch check-certificate=yes-without-crl "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/global-config" output=user as-value]->"data") + [admin@MikroTik] > / system script add name=global-functions source=([ / tool fetch check-certificate=yes-without-crl "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/global-functions" output=user as-value]->"data") [admin@MikroTik] > / system script add name=script-updates source=([ / tool fetch check-certificate=yes-without-crl "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/script-updates" output=user as-value]->"data") The configuration needs to be tweaked for your needs. Make sure not to send diff --git a/global-config b/global-config index 91c9e74..53ad29e 100644 --- a/global-config +++ b/global-config @@ -76,3 +76,4 @@ # Do *NOT* change these! :global "sent-routeros-update-notification" "-"; :global "identity" [ / system identity get name ]; +/ system script run global-functions; diff --git a/global-functions b/global-functions new file mode 100644 index 0000000..e28a20e --- /dev/null +++ b/global-functions @@ -0,0 +1,6 @@ +#!rsc +# RouterOS script: global-functions +# Copyright (c) 2013-2018 Christian Hesse +# +# global functions + -- cgit v1.2.3-70-g09d2