Commit 5789b8d9 authored by Christian Hesse's avatar Christian Hesse

cloud-backup: get values into array

parent 32cc5d10
......@@ -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" . \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment