aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-24 11:10:47 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-24 11:10:47 +0200
commit21996dfcaf676f50e02c2aa5b979b5f2e6065d53 (patch)
tree4e041145dd8bf045761be9f0c9b7efaf4202184e /check-routeros-update
parent55313b4841e0ce643cc640cae4f98fc83ce67152 (diff)
check-routeros-update: get values into array
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update7
1 files changed, 3 insertions, 4 deletions
diff --git a/check-routeros-update b/check-routeros-update
index cae9212..cc6d245 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -32,8 +32,7 @@
:if ($Update->"installed-version" != $Update->"latest-version") do={
:local BoardName [ / system resource get board-name ];
- :local Model [ / system routerboard get model ];
- :local SerialNumber [ / system routerboard get serial-number ];
+ :local RouterBoard [ / system routerboard get ];
:if ([ :len $SafeUpdateUrl ] > 0) do={
:local Result;
@@ -71,8 +70,8 @@
$SendNotification ("RouterOS update") \
("There is a RouterOS update available.\n\n" . \
"Board name: " . $BoardName . "\n" . \
- "Model: " . $Model . "\n" . \
- "Serial number: " . $SerialNumber . "\n" . \
+ "Model: " . $RouterBoard->"model" . "\n" . \
+ "Serial number: " . $RouterBoard->"serial-number" . "\n" . \
"Hostname: " . $Identity . "\n" . \
"Channel: " . $Update->"channel" . "\n" . \
"Installed: " . $Update->"installed-version" . "\n" . \