mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: (re-)introduce global $Read
... to interactively read input from user on terminal.
This commit is contained in:
parent
c1fa0f3579
commit
07cc38e973
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
||||||
:global ParseKeyValueStore;
|
:global ParseKeyValueStore;
|
||||||
:global QuotedPrintable;
|
:global QuotedPrintable;
|
||||||
:global RandomDelay;
|
:global RandomDelay;
|
||||||
|
:global Read;
|
||||||
:global RequiredRouterOS;
|
:global RequiredRouterOS;
|
||||||
:global ScriptFromTerminal;
|
:global ScriptFromTerminal;
|
||||||
:global ScriptInstallUpdate;
|
:global ScriptInstallUpdate;
|
||||||
|
@ -636,6 +637,11 @@
|
||||||
:delay ([ $GetRandomNumber $1 ] . [ $EitherOr $2 "s" ]);
|
:delay ([ $GetRandomNumber $1 ] . [ $EitherOr $2 "s" ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# read input from user
|
||||||
|
:set Read do={
|
||||||
|
:return;
|
||||||
|
}
|
||||||
|
|
||||||
# check for required RouterOS version
|
# check for required RouterOS version
|
||||||
:set RequiredRouterOS do={
|
:set RequiredRouterOS do={
|
||||||
:local Caller [ :tostr $1 ];
|
:local Caller [ :tostr $1 ];
|
||||||
|
|
Loading…
Reference in a new issue