aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INITIAL-COMMANDS.md2
-rw-r--r--README.md3
-rw-r--r--global-functions.rsc6
3 files changed, 10 insertions, 1 deletions
diff --git a/INITIAL-COMMANDS.md b/INITIAL-COMMANDS.md
index 65b313b..79773bd 100644
--- a/INITIAL-COMMANDS.md
+++ b/INITIAL-COMMANDS.md
@@ -10,7 +10,7 @@ Initial commands
[⬅️ Go back to main README](README.md)
-> ⚠️ **Warning**: These command are inteneded for initial setup. If you are
+> ⚠️ **Warning**: These commands are intended for initial setup. If you are
> not aware of the procedure please follow
> [the long way in detail](README.md#the-long-way-in-detail).
diff --git a/README.md b/README.md
index 1f7c8ed..e8e1b68 100644
--- a/README.md
+++ b/README.md
@@ -122,6 +122,9 @@ And finally load configuration and functions and add the scheduler.
![screenshot: run and schedule scripts](README.d/05-run-and-schedule-scripts.avif)
+> 💡️ **Hint**: You see complaints regarding syntax errors? Most likely the
+> RouterOS on your device is too old. Check for updates!
+
### Scheduled automatic updates
The last step is optional: Add this scheduler **only** if you want the
diff --git a/global-functions.rsc b/global-functions.rsc
index 70269c8..72c36cd 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -1195,6 +1195,12 @@
:error true;
}
+ :if ([ :len ($ScriptInfo->"certificate") ] > 0) do={
+ :if ([ $CertificateAvailable ($ScriptInfo->"certificate") ] = false) do={
+ $LogPrint warning $0 ("Downloading certificate failed, trying without.");
+ }
+ }
+
:do {
:local BaseUrl [ $EitherOr ($ScriptInfo->"base-url") $ScriptUpdatesBaseUrl ];
:local UrlSuffix [ $EitherOr ($ScriptInfo->"url-suffix") $ScriptUpdatesUrlSuffix ];