aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-11 10:32:48 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-12 11:04:00 +0200
commit95a75b3fa19f501fe5db8404a1c59a970cc8d7cd (patch)
tree29b6d4183c91fdd36224ca2ce41992d33f82e378 /doc
parent76127ed53c527641a31e069e2f525ac22982463f (diff)
doc/mod/scriptrunonce: RouterOS v7 path syntax
Diffstat (limited to 'doc')
-rw-r--r--doc/mod/scriptrunonce.d/hello-world.rsc2
-rw-r--r--doc/mod/scriptrunonce.d/scriptrunonce.avifbin2466 -> 2356 bytes
-rw-r--r--doc/mod/scriptrunonce.md2
3 files changed, 2 insertions, 2 deletions
diff --git a/doc/mod/scriptrunonce.d/hello-world.rsc b/doc/mod/scriptrunonce.d/hello-world.rsc
index 17ec575..6404781 100644
--- a/doc/mod/scriptrunonce.d/hello-world.rsc
+++ b/doc/mod/scriptrunonce.d/hello-world.rsc
@@ -1,3 +1,3 @@
#!rsc by RouterOS
-:put ("Hello World from " . [ / system identity get name ] . "!");
+:put ("Hello World from " . [ /system/identity/get name ] . "!");
diff --git a/doc/mod/scriptrunonce.d/scriptrunonce.avif b/doc/mod/scriptrunonce.d/scriptrunonce.avif
index 614c72c..27ccd41 100644
--- a/doc/mod/scriptrunonce.d/scriptrunonce.avif
+++ b/doc/mod/scriptrunonce.d/scriptrunonce.avif
Binary files differ
diff --git a/doc/mod/scriptrunonce.md b/doc/mod/scriptrunonce.md
index aaa64a9..6efa1b7 100644
--- a/doc/mod/scriptrunonce.md
+++ b/doc/mod/scriptrunonce.md
@@ -37,7 +37,7 @@ Usage and invocation
The function `$ScriptRunOnce` expects an URL (or name if
`ScriptRunOnceBaseUrl` is given) pointing to a script as parameter.
- $ScriptRunOnce https://git.eworm.de/cgit/routeros-scripts/plain/doc/mod/scriptrunonce.d/hello-world.rsc
+ $ScriptRunOnce https://git.eworm.de/cgit/routeros-scripts/plain/doc/mod/scriptrunonce.d/hello-world.rsc;
![ScriptRunOnce](scriptrunonce.d/scriptrunonce.avif)