OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 4... | Line 4... | |||
4 | . /lib/functions.sh |
4 | . /lib/functions.sh |
|
5 | . /lib/functions/leds.sh |
5 | . /lib/functions/leds.sh |
|
Line 6... | Line 6... | |||
6 | |
6 | |
|
7 | get_status_led() { |
7 | get_status_led() { |
|
8 | case $(board_name) in |
8 | case $(board_name) in |
|
9 | i2se,duckbill*) |
9 | duckbill) |
|
10 | status_led="duckbill:green:status" |
10 | status_led="duckbill:green:status" |
|
11 | ;; |
11 | ;; |
|
12 | olimex,imx23-olinuxino) |
12 | olinuxino) |
|
13 | status_led="green" |
13 | status_led="green" |
|
14 | ;; |
14 | ;; |
|
15 | *) |
15 | *) |
|
16 | status_led=$(cd /sys/class/leds && ls -1d *:status 2> /dev/null | head -n 1) |
16 | status_led=$(cd /sys/class/leds && ls -1d *:status 2> /dev/null | head -n 1) |