aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-11-28 10:49:21 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-11-28 10:49:21 +0100
commitac6c132ea0154de90b4f8f9f8366eab7db86abc8 (patch)
tree37ee1cb8bdc9748595356c92fb35846938d28691 /global-functions
parenta8a0523d33a2760f61d24a42fc057c5c24a596ae (diff)
global-functions: $DeviceInfo: append revision to model
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 21ff487..218262b 100644
--- a/global-functions
+++ b/global-functions
@@ -311,8 +311,12 @@
"Board name: " . $Resource->"board-name" . "\n" . \
"Architecture: " . $Resource->"architecture-name");
:if ($RouterBoard->"routerboard" = true) do={
+ :local Revision "";
+ :if ([ :len ($RouterBoard->"revision") ] > 0) do={
+ :set Revision (" " . $RouterBoard->"revision");
+ }
:set Info ($Info . "\n" . \
- "Model: " . $RouterBoard->"model" . "\n" . \
+ "Model: " . $RouterBoard->"model" . $Revision . "\n" . \
"Serial number: " . $RouterBoard->"serial-number");
}
:set Info ($Info . "\n" . \