global-functions: (re-)introduce global $Read

... to interactively read input from user on terminal.
This commit is contained in:
Christian Hesse 2022-03-08 22:28:48 +01:00
parent c1fa0f3579
commit 07cc38e973

View file

@ -38,6 +38,7 @@
:global ParseKeyValueStore;
:global QuotedPrintable;
:global RandomDelay;
:global Read;
:global RequiredRouterOS;
:global ScriptFromTerminal;
:global ScriptInstallUpdate;
@ -636,6 +637,11 @@
:delay ([ $GetRandomNumber $1 ] . [ $EitherOr $2 "s" ]);
}
# read input from user
:set Read do={
:return;
}
# check for required RouterOS version
:set RequiredRouterOS do={
:local Caller [ :tostr $1 ];