aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-03-08 22:28:48 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-03-08 22:32:11 +0100
commit98b08bcbd2e0bd131f3a8f8c53fed0c74198f630 (patch)
treeebd4c9723b62e269163794b2090750aeac439e40 /global-functions
parentddb181fbc2d04d04743253b018cac00ffeb70de4 (diff)
global-functions: (re-)introduce global $Read
... to interactively read input from user on terminal. (cherry picked from commit 07cc38e973a6037649083494332fbae1946b48b4)
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index 3b88a2a..91297b4 100644
--- a/global-functions
+++ b/global-functions
@@ -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 ];