mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 20:44:31 +02:00
global-functions: add architecture in device info
This commit is contained in:
parent
df0c2afa31
commit
7c0c27c03f
1 changed files with 3 additions and 2 deletions
|
@ -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" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue