global-functions: give commit info when laoding

This commit is contained in:
Christian Hesse 2026-01-20 11:35:57 +01:00
parent 03010ad9d9
commit 4fe77ef238

View file

@ -1950,8 +1950,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;