After studying on the /etc/rc.button/reset script at the GL-AR150 router and the mentioned script /usr/bin/flashleds I discovered the last one contains incorrect paths.
/usr/bin/flashleds calls:
/sys/class/leds/gl-connect:green:lan/brightness
and:
/sys/class/leds/gl-connect:red:wireless/brightness
Since the LED’s can’t have different colors the LED’s do not have colour classes. Also the LED for WiFi isn’t called “wireless” but “wlan”.
The correct paths should be:
/sys/class/leds/gl_ar150:lan/brightness
and:
/sys/class/leds/gl_ar150:wlan/brightness
I think the LED “wan” should also be blinking during reset and should all blink together, so I think /etc/rc.button/reset should look like:
#!/bin/sh
i=1
while [ "$i" -le 100 ]
do
echo 0 > /sys/class/leds/gl_ar150:wan/brightness
echo 0 > /sys/class/leds/gl_ar150:lan/brightness
echo 0 > /sys/class/leds/gl_ar150:wlan/brightness
sleep 0.2
echo 1 > /sys/class/leds/gl_ar150:wan/brightness
echo 1 > /sys/class/leds/gl_ar150:lan/brightness
echo 1 > /sys/class/leds/gl_ar150:wlan/brightness
sleep 0.2
i=$((i+1))
done