aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-14 11:29:36 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-14 11:29:36 +0100
commiteb14820f2e1150965a670924350de461681cc8b4 (patch)
tree36f8a2808e85b124b48d0960060fdd65f0e435cc
parent5664449f643e937a2ce2586343f72e2939f4ad66 (diff)
email-backup: give board name and model
-rw-r--r--email-backup4
1 files changed, 3 insertions, 1 deletions
diff --git a/email-backup b/email-backup
index 9dd4f51..394c0c8 100644
--- a/email-backup
+++ b/email-backup
@@ -27,6 +27,7 @@
:local Attach [ :toarray "" ];
# 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 Channel [ / system package update get channel ];
@@ -71,7 +72,8 @@
/ tool e-mail send to=$EmailBackupTo cc=$EmailBackupCc \
subject=("[" . $Identity . "] Backup & Config") \
body=("Backup and config export for " . $Identity . ".\n\n" . \
- "Routerboard: " . $Model . "\n" . \
+ "Board name: " . $BoardName . "\n" . \
+ "Model: " . $Model . "\n" . \
"Serial number: " . $SerialNumber . "\n" . \
"Hostname: " . $Identity . "\n" . \
"Channel: " . $Channel . "\n" . \