routeros-scripts/leds-toggle-mode

14 lines
439 B
Text
Raw Normal View History

#!rsc by RouterOS
2018-08-06 11:16:15 +00:00
# RouterOS script: leds-toggle-mode
2022-01-01 20:38:15 +00:00
# Copyright (c) 2018-2022 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
2018-08-06 11:16:15 +00:00
#
# toggle LEDs mode
2020-03-27 20:47:41 +00:00
# https://git.eworm.de/cgit/routeros-scripts/about/doc/leds-mode.md
2018-08-06 11:16:15 +00:00
:if ([ /system/leds/settings/get all-leds-off ] = "never") do={
/system/leds/settings/set all-leds-off=immediate;
2018-08-06 11:16:15 +00:00
} else={
/system/leds/settings/set all-leds-off=never;
2018-08-06 11:16:15 +00:00
}