diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-24 11:11:57 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-24 11:11:57 +0200 |
commit | 32cc5d107896f91a71c677d0eb0033140cace607 (patch) | |
tree | 8e650436f18bd02cb6dcc9e235ee74b0e1b362d0 /email-backup | |
parent | 21996dfcaf676f50e02c2aa5b979b5f2e6065d53 (diff) |
email-backup: get values into array
Diffstat (limited to 'email-backup')
-rw-r--r-- | email-backup | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/email-backup b/email-backup index f5b967f..f1a2f9a 100644 --- a/email-backup +++ b/email-backup @@ -28,8 +28,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 @@ -51,8 +50,8 @@ subject=("[" . $Identity . "] Backup & Config") \ body=("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" . \ |