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:28:48 +0100
commit07cc38e973a6037649083494332fbae1946b48b4 (patch)
treee8e0bf543ef4cf1f8b0664fd508a69d2d7f6a033 /global-functions
parentc1fa0f3579573b75cadba585c1aeb7e68313645c (diff)
global-functions: (re-)introduce global $Read
... to interactively read input from user on terminal.
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 f207ac8..af617b3 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;
@@ -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 ];