add global-functions

This commit is contained in:
Christian Hesse 2018-10-09 13:12:08 +02:00
parent 7e9252064e
commit 9c3f3b9f20
3 changed files with 8 additions and 0 deletions

View file

@ -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. 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-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") [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 The configuration needs to be tweaked for your needs. Make sure not to send

View file

@ -76,3 +76,4 @@
# Do *NOT* change these! # Do *NOT* change these!
:global "sent-routeros-update-notification" "-"; :global "sent-routeros-update-notification" "-";
:global "identity" [ / system identity get name ]; :global "identity" [ / system identity get name ];
/ system script run global-functions;

6
global-functions Normal file
View file

@ -0,0 +1,6 @@
#!rsc
# RouterOS script: global-functions
# Copyright (c) 2013-2018 Christian Hesse <mail@eworm.de>
#
# global functions