aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-10-09 13:12:08 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-10-09 14:15:34 +0200
commit9c3f3b9f202c711ec4b525456b7678518e50624e (patch)
treed3dc38c8412cd6dbc0309513807526a5e4ec6dcf
parent7e9252064ea65c94ed5c8b9e497eb2cc0897f6f7 (diff)
add global-functions
-rw-r--r--README.md1
-rw-r--r--global-config1
-rw-r--r--global-functions6
3 files changed, 8 insertions, 0 deletions
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 <mail@eworm.de>
+#
+# global functions
+