aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-07 11:25:28 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-03-07 11:25:28 +0100
commit8ca434ec05620569c0bfc82c81c02c11ff694223 (patch)
tree0d57b01585ab6b0b5240c56ca9922459c634d991
parentfa5291f6d1d0ab748221f2d72ae819ae874d2093 (diff)
downloadrouteros-scripts-custom-8ca434ec05620569c0bfc82c81c02c11ff694223.tar.gz
routeros-scripts-custom-8ca434ec05620569c0bfc82c81c02c11ff694223.tar.zst
update for upstream change on file extension
The scripts are expected to have the file extension ".rsc" now.
-rw-r--r--doc/hello-world.md4
-rw-r--r--hello-world.rsc4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/hello-world.md b/doc/hello-world.md
index a9be755..e8af164 100644
--- a/doc/hello-world.md
+++ b/doc/hello-world.md
@@ -17,7 +17,7 @@ Requirements and installation
Just install the script:
- $ScriptInstallUpdate hello-world.rsc "base-url=https://git.eworm.de/cgit/routeros-scripts-custom/plain/"
+ $ScriptInstallUpdate hello-world "base-url=https://git.eworm.de/cgit/routeros-scripts-custom/plain/"
Configuration
-------------
@@ -30,7 +30,7 @@ Usage and invocation
Just run the script:
- /system/script/run hello-world.rsc;
+ /system/script/run hello-world;
See also
--------
diff --git a/hello-world.rsc b/hello-world.rsc
index f3a3436..bd4619c 100644
--- a/hello-world.rsc
+++ b/hello-world.rsc
@@ -1,12 +1,12 @@
#!rsc by RouterOS
-# RouterOS script: hello-world.rsc
+# RouterOS script: hello-world
# Copyright (c) 2023 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts-custom/about/COPYING.md
#
# hello-world demo script
# https://git.eworm.de/cgit/routeros-scripts-custom/about/doc/hello-world.md
-:local 0 "hello-world.rsc";
+:local 0 "hello-world";
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }