From 98b08bcbd2e0bd131f3a8f8c53fed0c74198f630 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 8 Mar 2022 22:28:48 +0100 Subject: global-functions: (re-)introduce global $Read ... to interactively read input from user on terminal. (cherry picked from commit 07cc38e973a6037649083494332fbae1946b48b4) --- global-functions | 6 ++++++ 1 file changed, 6 insertions(+) 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 ]; -- cgit v1.2.3-70-g09d2