aboutsummaryrefslogblamecommitdiffstats
path: root/leds-toggle-mode
blob: 5f67979e54974f2123ae53d4ff13f2d37811cc3f (plain) (tree)
1
2
3
4
5
6
7
8
9
     
                                   
                                                         
                  
                                                                   
                                                                
                                                    
        
                                                
 
#!rsc
# RouterOS script: leds-toggle-mode
# Copyright (c) 2018-2020 Christian Hesse <mail@eworm.de>
#
# toggle LEDs mode
# https://git.eworm.de/cgit/routeros-scripts/about/doc/leds-mode.md

: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;
}