routeros-scripts/leds-toggle-mode
2020-03-27 22:12:49 +01:00

12 lines
368 B
Text

#!rsc
# RouterOS script: leds-toggle-mode
# Copyright (c) 2018-2020 Christian Hesse <mail@eworm.de>
#
# 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;
} else={
/ system leds settings set all-leds-off=never;
}