mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-31 00:04:51 +02:00
global-functions: $LogAndError: add severity
This commit is contained in:
parent
6ef764c7d7
commit
3ebf68a08c
12 changed files with 16 additions and 15 deletions
|
@ -25,7 +25,7 @@
|
|||
:if ([ / system package print count-only where name="wireless" disabled=no ] > 0) do={
|
||||
:if ([ / interface wireless cap get enabled ] = true && \
|
||||
[ / caps-man manager get enabled ] = false) do={
|
||||
$LogAndError "System is managed by CAPsMAN, not checking.";
|
||||
$LogAndError error "System is managed by CAPsMAN, not checking.";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
:local Update [ / system package update get ];
|
||||
|
||||
:if ([ :len ($Update->"latest-version") ] = 0) do={
|
||||
$LogAndError "An empty string is not a valid version.";
|
||||
$LogAndError warning "An empty string is not a valid version.";
|
||||
}
|
||||
|
||||
:if ($Update->"installed-version" != $Update->"latest-version") do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue