aboutsummaryrefslogtreecommitdiffstats
path: root/leds-toggle-mode
diff options
context:
space:
mode:
Diffstat (limited to 'leds-toggle-mode')
-rw-r--r--leds-toggle-mode10
1 files changed, 10 insertions, 0 deletions
diff --git a/leds-toggle-mode b/leds-toggle-mode
new file mode 100644
index 0000000..d51d3dc
--- /dev/null
+++ b/leds-toggle-mode
@@ -0,0 +1,10 @@
+# RouterOS script: leds-toggle-mode
+# Copyright (c) 2018 Christian Hesse <mail@eworm.de>
+#
+# toggle LEDs mode
+
+: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
+}