diff options
-rw-r--r-- | check-routeros-update | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/check-routeros-update b/check-routeros-update index cae9212..cc6d245 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -32,8 +32,7 @@ :if ($Update->"installed-version" != $Update->"latest-version") do={ :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 ]; :if ([ :len $SafeUpdateUrl ] > 0) do={ :local Result; @@ -71,8 +70,8 @@ $SendNotification ("RouterOS update") \ ("There is a RouterOS update available.\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" . \ "Installed: " . $Update->"installed-version" . "\n" . \ |