aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions5
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" . \