global-functions: give commit info when laoding

This commit is contained in:
Christian Hesse 2026-01-20 11:35:57 +01:00
parent 542a018a15
commit c5ef71eb4a

View file

@ -1951,8 +1951,9 @@
# Log success
:local Resource [ /system/resource/get ];
$LogPrintOnce info $ScriptName ("Loaded on " . $Resource->"board-name" . \
" with RouterOS " . $Resource->"version" . ".");
$LogPrintOnce info $ScriptName ("Loaded " . \
[ $IfThenElse ($CommitId != "unknown") ([ $CommitBrief ] . " ") ] . \
"on " . $Resource->"board-name" . " with RouterOS " . $Resource->"version" . ".");
# signal we are ready
:set GlobalFunctionsReady true;