mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-27 11:58:55 +02:00
leds-toggle-mode: toggle in one call...
... and drop the condition.
This commit is contained in:
parent
42bcc63d29
commit
c311e58d99
1 changed files with 1 additions and 5 deletions
|
@ -6,8 +6,4 @@
|
||||||
# toggle LEDs mode
|
# toggle LEDs mode
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/doc/leds-mode.md
|
# 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=(({ "never"="immediate"; "immediate"="never" })->[ get all-leds-off ]);
|
||||||
/system/leds/settings/set all-leds-off=immediate;
|
|
||||||
} else={
|
|
||||||
/system/leds/settings/set all-leds-off=never;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue