mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-21 00:19:32 +00:00
global-functions: $DeviceInfo: use $CommitBrief
This commit is contained in:
parent
8bc9e23bd7
commit
edd184db8f
1 changed files with 2 additions and 4 deletions
|
|
@ -335,11 +335,10 @@
|
|||
|
||||
# get readable device info
|
||||
:set DeviceInfo do={
|
||||
:global CommitId;
|
||||
:global CommitInfo;
|
||||
:global ExpectedConfigVersion;
|
||||
:global Identity;
|
||||
|
||||
:global CommitBrief;
|
||||
:global IfThenElse;
|
||||
:global FormatLine;
|
||||
|
||||
|
|
@ -380,8 +379,7 @@
|
|||
$RouterBoard->"current-firmware" != $RouterBoard->"upgrade-firmware") \
|
||||
([ $FormatLine " Firmware" ($RouterBoard->"current-firmware") ] . "\n") ] . \
|
||||
"RouterOS-Scripts:\n" . \
|
||||
[ $IfThenElse ($CommitId != "unknown") \
|
||||
([ $FormatLine " Commit" ($CommitInfo . "/" . [ :pick $CommitId 0 8 ]) ] . "\n") ] . \
|
||||
[ $FormatLine " Commit" [ $CommitBrief ] ] . "\n" . \
|
||||
[ $FormatLine " Version" $ExpectedConfigVersion ]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue