From 32cc5d107896f91a71c677d0eb0033140cace607 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 24 Jul 2019 11:11:57 +0200 Subject: email-backup: get values into array --- email-backup | 7 +++---- 1 file 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" . \ -- cgit v1.2.3-70-g09d2