aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-24 11:05:44 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-24 11:05:44 +0200
commit1020db0b31e32e9b628fd0b1a7b9c74783e90a45 (patch)
tree4f5f2c14dca3588f592bca319096f7401d4424e2
parent5f592111682f4df7a559a2b2ea48465c5fe1d484 (diff)
cloud-backup: get values into array
-rw-r--r--cloud-backup7
1 files changed, 3 insertions, 4 deletions
diff --git a/cloud-backup b/cloud-backup
index f9e7747..6f163a2 100644
--- a/cloud-backup
+++ b/cloud-backup
@@ -13,8 +13,7 @@
:local BoardName [ / system resource get board-name ];
:local Model [ / system routerboard get model ];
:local SerialNumber [ / system routerboard get serial-number ];
-:local Channel [ / system package update get channel ];
-:local InstalledVersion [ / system package update get installed-version ];
+:local Update [ / system package update get ];
:do {
# we are not interested in output, but print without count-only is
@@ -32,8 +31,8 @@
"Model: " . $Model . "\n" . \
"Serial number: " . $SerialNumber . "\n" . \
"Hostname: " . $Identity . "\n" . \
- "Channel: " . $Channel . "\n" . \
- "RouterOS: " . $InstalledVersion . "\n\n" . \
+ "Channel: " . $Update->"channel" . "\n" . \
+ "RouterOS: " . $Update->"installed-version" . "\n\n" . \
"Name: " . $Cloud->"name" . "\n" . \
"Size: " . $Cloud->"size" . "\n" . \
"Download key: " . $Cloud->"secret-download-key");