aboutsummaryrefslogtreecommitdiffstats
path: root/leds-toggle-mode
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-10 15:07:47 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-11 13:48:27 +0200
commitefc3e997ef4e4ad22cbfe9213693981e0f6b0694 (patch)
tree4556528d214d9f52bec430e10ac064c4a3933bd4 /leds-toggle-mode
parent7d5418718ce02a4ff471ebbb9a4cb1c8fc750be7 (diff)
leds-{day,night,toggle}-mode: RouterOS v7 path syntax
Diffstat (limited to 'leds-toggle-mode')
-rw-r--r--leds-toggle-mode6
1 files changed, 3 insertions, 3 deletions
diff --git a/leds-toggle-mode b/leds-toggle-mode
index 8ec66e3..225ceb2 100644
--- a/leds-toggle-mode
+++ b/leds-toggle-mode
@@ -6,8 +6,8 @@
# toggle LEDs mode
# https://git.eworm.de/cgit/routeros-scripts/about/doc/leds-mode.md
-:if ([ / system leds settings get all-leds-off ] = "never") do={
- / system leds settings set all-leds-off=immediate;
+:if ([ /system/leds/settings/get all-leds-off ] = "never") do={
+ /system/leds/settings/set all-leds-off=immediate;
} else={
- / system leds settings set all-leds-off=never;
+ /system/leds/settings/set all-leds-off=never;
}