diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/lantiq/base-files/etc/diag.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/diag.sh b/target/linux/lantiq/base-files/etc/diag.sh index 9e0e1701cb..a6cb823581 100644 --- a/target/linux/lantiq/base-files/etc/diag.sh +++ b/target/linux/lantiq/base-files/etc/diag.sh @@ -6,6 +6,26 @@ status_led="power" set_state() { + [ -d /sys/class/leds/power2/ ] && { + + case "$1" in + preinit) + led_set_attr "power2" "trigger" "heartbeat" + ;; + init) + status_led_on + ;; + failsafe) + led_off "power2" + status_led_set_timer 100 100 + ;; + done) + led_off "power2" + ;; + esac + return + } + case "$1" in preinit) status_led_set_heartbeat |