1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: add architecture in device info

This commit is contained in:
Christian Hesse
2019-10-28 13:08:04 +01:00
parent df0c2afa31
commit 7c0c27c03f

View File

@ -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" . \