diff options
author | Christian Hesse <mail@eworm.de> | 2018-08-06 13:16:15 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-08-06 13:16:15 +0200 |
commit | 7fcb7a6b61a0c34a92e19ef5f35a82042f1bee11 (patch) | |
tree | 6cb28b09195db208e383cea82701eaf708a55958 | |
parent | 6632914bf18a569dbc4dfacc8b9dea40e247b57d (diff) |
add script 'leds-toggle-mode'
-rw-r--r-- | leds-toggle-mode | 10 |
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 +} |