diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-24 11:12:52 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-24 11:12:52 +0200 |
commit | 5789b8d9847a0bf0831ea3fff86a8a2a44947249 (patch) | |
tree | 2dd3308c161d96b3b8eaa7be54e336c7498bfefd /cloud-backup | |
parent | 32cc5d107896f91a71c677d0eb0033140cace607 (diff) |
cloud-backup: get values into array
Diffstat (limited to 'cloud-backup')
-rw-r--r-- | cloud-backup | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cloud-backup b/cloud-backup index 6f163a2..2d450cb 100644 --- a/cloud-backup +++ b/cloud-backup @@ -11,8 +11,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 ]; :do { @@ -28,8 +27,8 @@ $SendNotification "Cloud backup" \ ("Uploaded backup for " . $Identity . " to cloud.\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" . \ |