From 7c0c27c03f62c2fe636870ab0ab649656cce9d27 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Oct 2019 13:08:04 +0100 Subject: global-functions: add architecture in device info --- global-functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/global-functions b/global-functions index 2336961..21ff487 100644 --- a/global-functions +++ b/global-functions @@ -302,13 +302,14 @@ :global GlobalConfigVersion; :global Identity; - :local BoardName [ / system resource get board-name ]; + :local Resource [ / system resource get ]; :local RouterBoard [ / system routerboard get ]; :local Update [ / system package update get ]; :local Info ( \ "Hostname: " . $Identity . "\n" . \ - "Board name: " . $BoardName); + "Board name: " . $Resource->"board-name" . "\n" . \ + "Architecture: " . $Resource->"architecture-name"); :if ($RouterBoard->"routerboard" = true) do={ :set Info ($Info . "\n" . \ "Model: " . $RouterBoard->"model" . "\n" . \ -- cgit v1.2.3-70-g09d2