projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
brcm2708: add device detection and use it for network, leds and preinit
[openwrt/openwrt.git]
/
target
/
linux
/
brcm2708
/
base-files
/
etc
/
diag.sh
diff --git
a/target/linux/brcm2708/base-files/etc/diag.sh
b/target/linux/brcm2708/base-files/etc/diag.sh
index 55e68b1a008db6171d73c483986c42eb2f2e1997..3a8dc86112303097bd12a967d4d68ce66261b050 100644
(file)
--- a/
target/linux/brcm2708/base-files/etc/diag.sh
+++ b/
target/linux/brcm2708/base-files/etc/diag.sh
@@
-4,9
+4,19
@@
#
. /lib/functions/leds.sh
+. /lib/brcm2708.sh
set_state() {
- status_led="led0"
+ case "$(brcm2708_board_name)" in
+ rpi-b |\
+ rpi-cm)
+ status_led="led0"
+ ;;
+ rpi-b-plus |\
+ rpi-2-b)
+ status_led="led1"
+ ;;
+ esac
case "$1" in
preinit)