I've been looking the wiki for the nesseccery commands I need to activate the dark-mode (turn off LEDs using the MODE button) on a RBcAPGi-5acD2nD, that I had just reset to no defaults. I couldn't find anything, so I had to reset again to defaults to get it.
So, just in case if anyone ever needs it again, I will put it here.
Code: Select all
/system script
add comment=defconf dont-require-permissions=no name=dark-mode owner=jimmyz policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="\r\
\n :if ([system leds settings get all-leds-off] = \"never\") do={\r\
\n /system leds settings set all-leds-off=immediate \r\
\n } else={\r\
\n /system leds settings set all-leds-off=never \r\
\n }\r\
\n "
/system routerboard mode-button
set enabled=yes on-event="system script run dark-mode"
Thank you !