OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #!/bin/sh
2 # Copyright (C) 2009-2013 OpenWrt.org
3  
4 . /lib/functions.sh
5 . /lib/functions/leds.sh
6  
7 get_status_led() {
8 case $(board_name) in
3 office 9 akitio)
1 office 10 status_led="akitio:red:status"
11 ;;
3 office 12 stg212)
1 office 13 status_led="zyxel:blue:status"
14 ;;
3 office 15 kd20)
1 office 16 status_led="kd20:blue:status"
17 ;;
3 office 18 pogoplug-pro | pogoplug-v3)
1 office 19 status_led="pogoplug:blue:internal"
20 ;;
21 esac
22 }
23  
24 set_state() {
25 get_status_led
26  
27 case "$1" in
28 preinit)
29 status_led_blink_preinit
30 ;;
31 failsafe)
32 status_led_blink_failsafe
33 ;;
34 preinit_regular)
35 status_led_blink_preinit_regular
36 ;;
37 done)
38 status_led_on
39 ;;
40 esac
41 }