routeros-scripts/leds-toggle-mode

13 lines
368 B
Text
Raw Normal View History

#!rsc
2018-08-06 11:16:15 +00:00
# RouterOS script: leds-toggle-mode
2020-01-01 16:00:39 +00:00
# Copyright (c) 2018-2020 Christian Hesse <mail@eworm.de>
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
}