mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-24 12:54:37 +02:00
global-functions: (re-)introduce global $Read
... to interactively read input from user on terminal.
(cherry picked from commit 07cc38e973
)
This commit is contained in:
parent
ddb181fbc2
commit
98b08bcbd2
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
|||
:global ParseKeyValueStore;
|
||||
:global QuotedPrintable;
|
||||
:global RandomDelay;
|
||||
:global Read;
|
||||
:global RequiredRouterOS;
|
||||
:global ScriptFromTerminal;
|
||||
:global ScriptInstallUpdate;
|
||||
|
@ -640,6 +641,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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue