Changeset 27502


Ignore:
Timestamp:
2011-07-07T05:09:20+02:00 (7 years ago)
Author:
cshore
Message:

[ar7] base-files: diag.sh: added failsafe led definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar7/base-files/etc/diag.sh

    r9666 r27502  
    22# Copyright (C) 2007 OpenWrt.org 
    33 
    4 # This setup gives us 3.5 distinguishable states: 
     4# This setup gives us 4.5 distinguishable states: 
    55# 
    66# Solid OFF:  Bootloader running, or kernel hung (timer task stalled) 
    77# Solid ON:   Kernel hung (timer task stalled) 
    88# 5Hz blink:  preinit 
     9# 10Hz blink: failsafe 
    910# Heartbeat:  normal operation 
    1011 
     
    1819                        } 
    1920                ;; 
     21                failsafe) 
     22                        [ -d /sys/class/leds/status ] && { 
     23                                echo timer >/sys/class/leds/status/trigger 
     24                                echo 50 >/sys/class/leds/status/delay_on 
     25                                echo 50 >/sys/class/leds/status/delay_off 
     26                        } 
     27                ;; 
    2028                done) 
    2129                        [ -d /sys/class/leds/status ] && { 
Note: See TracChangeset for help on using the changeset viewer.