aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-24 11:13:53 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-24 11:13:53 +0200
commit39eef1a0b1bbc7e41438a37136972202c9ba6d33 (patch)
tree251605824b1e6d9b81d921ddadb30b556b9409b1
parent5789b8d9847a0bf0831ea3fff86a8a2a44947249 (diff)
upload-backup: get values into array
-rw-r--r--upload-backup7
1 files changed, 3 insertions, 4 deletions
diff --git a/upload-backup b/upload-backup
index 31efce7..87d3960 100644
--- a/upload-backup
+++ b/upload-backup
@@ -29,8 +29,7 @@
# get some system information
: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 ];
:local Update [ / system package update get ];
# binary backup
@@ -64,8 +63,8 @@
$SendNotification "Backup & Config Upload" \
("Backup and config export for " . $Identity . ".\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" . \
"RouterOS: " . $Update->"installed-version" . "\n\n" . \