mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-05-15 16:02:34 +00:00
global-functions: $CertificateAvailable: warn on undefined intended use
This commit is contained in:
parent
885129d650
commit
f69925e537
1 changed files with 4 additions and 2 deletions
|
|
@ -111,11 +111,13 @@
|
||||||
:local UseFor [ :tostr $2 ];
|
:local UseFor [ :tostr $2 ];
|
||||||
|
|
||||||
:global CertificateDownload;
|
:global CertificateDownload;
|
||||||
:global EitherOr;
|
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
|
|
||||||
:set UseFor [ $EitherOr $UseFor "undefined" ];
|
:if ([ :len $UseFor ] = 0) do={
|
||||||
|
$LogPrint warning $0 ("The intended use is undefined!");
|
||||||
|
:set UseFor "undefined";
|
||||||
|
}
|
||||||
|
|
||||||
:if ([ /system/resource/get free-hdd-space ] < 8388608 && \
|
:if ([ /system/resource/get free-hdd-space ] < 8388608 && \
|
||||||
[ /certificate/settings/get crl-download ] = true && \
|
[ /certificate/settings/get crl-download ] = true && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue