From ac6c132ea0154de90b4f8f9f8366eab7db86abc8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 28 Nov 2019 10:49:21 +0100 Subject: global-functions: $DeviceInfo: append revision to model --- global-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'global-functions') 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" . \ -- cgit v1.2.3-70-g09d2