2020-09-18 09:00:27 +00:00
|
|
|
#!rsc by RouterOS
|
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>
|
2020-06-19 20:17:42 +00:00
|
|
|
# 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={
|
2018-09-10 20:18:48 +00:00
|
|
|
/ system leds settings set all-leds-off=immediate;
|
2018-08-06 11:16:15 +00:00
|
|
|
} else={
|
2018-09-10 20:18:48 +00:00
|
|
|
/ system leds settings set all-leds-off=never;
|
2018-08-06 11:16:15 +00:00
|
|
|
}
|