routeros-scripts/leds-toggle-mode

12 lines
300 B
Text
Raw Normal View History

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