aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files/etc/diag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm2708/base-files/etc/diag.sh')
-rw-r--r--target/linux/brcm2708/base-files/etc/diag.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh
index 55e68b1a00..3a8dc86112 100644
--- 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)