In Backfire, the power LED worked normally on the Fonera+, but in
Barrier Breaker, it's unused. I can't seem to find a way to
differentiate among hardware in the atheros target, so I'm submitting a
"FIXME" patch to be further patched with info from other devices.

Signed-off-by: Daniel Gimpelevich <dan...@gimpelevich.san-francisco.ca.us>
--- /dev/null   2013-11-09 12:36:28.330833697 -0800
+++ b/target/linux/atheros/base-files/etc/diag.sh       2013-11-10 
07:34:45.372612754 -0800
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Copyright (C) 2013 OpenWrt.org
+
+. /lib/functions/leds.sh
+
+set_state() {
+       status_led="gpio4"
+
+       [ -d /sys/class/leds/gpio4/ ] &&
+       [ -d /sys/class/leds/gpio7/ ] && {
+
+               case "$1" in
+               preinit)
+                       led_timer "gpio7" 200 200
+                       status_led_off
+                       ;;
+               failsafe)
+                       status_led_blink_failsafe
+                       led_off "gpio7"
+                       ;;
+               done)
+                       status_led_on
+                       led_off "gpio7"
+                       ;;
+               esac
+       }
+}
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to