aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-09-10 09:44:36 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-09-10 09:44:36 +0200
commit8f4986af0bb0ecea13594b9ea2bbcfbaa6c8a7e7 (patch)
tree43018abe95d562d11fc56944908096d382342f33 /README.md
parenta1951cc86a206abd0b6d46d579a8247af42904f8 (diff)
parent2de26a6617911d88fe0e4c10b861df670f0f17e6 (diff)
Merge branch 'fetch-as-value'
Diffstat (limited to 'README.md')
-rw-r--r--README.md29
1 files changed, 13 insertions, 16 deletions
diff --git a/README.md b/README.md
index 52ac8cb..014e323 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,17 @@ to manage RouterOS devices or extend their functionality.
*Use at your own risk!*
+Requirements
+------------
+
+Latest version of the scripts require at least **RouterOS 6.43** to function
+properly. The changelog lists the corresponding change as follows:
+
+> *) fetch - added "as-value" output format;
+
+See branch `pre-6-43` if you want to use the scripts on devices with older
+RouterOS version.
+
Initial setup
-------------
@@ -51,22 +62,8 @@ Then we import the certificates.
Now let's download the main scripts, add them in configuration and remove the files.
- [admin@MikroTik] > / tool fetch check-certificate=yes-without-crl dst-path="script-updates/global-config" "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/global-config"
- status: finished
- downloaded: 1KiBC-z pause]
- total: 1KiB
- duration: 0s
-
- [admin@MikroTik] > / tool fetch check-certificate=yes-without-crl dst-path="script-updates/script-updates" "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/script-updates"
- status: finished
- downloaded: 1KiBC-z pause]
- total: 1KiB
- duration: 1s
-
- [admin@MikroTik] > / system script add name=global-config source=[ / file get script-updates/global-config contents ]
- [admin@MikroTik] > / file remove script-updates/global-config
- [admin@MikroTik] > / system script add name=script-updates source=[ / file get script-updates/script-updates contents ]
- [admin@MikroTik] > / file remove script-updates/script-updates
+ [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=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 your mails to `mail@example.com`!