aboutsummaryrefslogtreecommitdiffstats
path: root/sms-forward.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-28 15:55:48 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-04-26 10:31:23 +0200
commit1f1e76b822689297faff56cfcbdd574da4a2bd9f (patch)
treea9f1a695c59c6a0d58491b24f3968c16e65e1a00 /sms-forward.rsc
parentc8500dddd01ef10128eca0e4176050ef087a3918 (diff)
sms-forward: drop workaround, add required RouterOSrouteros-7.9beta4-4
Diffstat (limited to 'sms-forward.rsc')
-rw-r--r--sms-forward.rsc13
1 files changed, 2 insertions, 11 deletions
diff --git a/sms-forward.rsc b/sms-forward.rsc
index e6ac9aa..542fe0d 100644
--- a/sms-forward.rsc
+++ b/sms-forward.rsc
@@ -4,6 +4,8 @@
# Anatoly Bubenkov <bubenkoff@gmail.com>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.9beta4
+#
# forward SMS to e-mail
# https://git.eworm.de/cgit/routeros-scripts/about/doc/sms-forward.md
@@ -13,11 +15,9 @@
:global Identity;
:global SmsForwardHooks;
-:global SmsForwardWorkaround;
:global IfThenElse;
:global LogPrintExit2;
-:global RequiredRouterOS;
:global ScriptLock;
:global SendNotification2;
:global SymbolForNotification;
@@ -30,15 +30,6 @@ $ScriptLock $0;
$LogPrintExit2 warning $0 ("Receiving of SMS is not enabled.") true;
}
-:if ($SmsForwardWorkaround != true && \
- [ $RequiredRouterOS $0 "7.8" false ] = true && \
- [ $RequiredRouterOS $0 "7.9beta4" false ] = false) do={
- :local AutoErase [ /tool/sms/get auto-erase ];
- /tool/sms/set auto-erase=(!$AutoErase);
- /tool/sms/set auto-erase=$AutoErase;
- :set SmsForwardWorkaround true;
-}
-
$WaitFullyConnected;
:local Settings [ /tool/sms/get ];