aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--email-backup7
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" . \