diff options
author | Christian Hesse <mail@eworm.de> | 2019-10-28 13:08:04 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-10-28 13:15:10 +0100 |
commit | 7c0c27c03f62c2fe636870ab0ab649656cce9d27 (patch) | |
tree | 7035ad69699570af3a1e42f8a564932bb2c40a0f | |
parent | df0c2afa315653429c8a41b705f100cf8310ccfd (diff) |
global-functions: add architecture in device info
-rw-r--r-- | global-functions | 5 |
1 files 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" . \ |