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.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/brcm2708/base-files/etc/diag.sh b/target/linux/brcm2708/base-files/etc/diag.sh
index ecc6242d73..010a623d1e 100644
--- a/target/linux/brcm2708/base-files/etc/diag.sh
+++ b/target/linux/brcm2708/base-files/etc/diag.sh
@@ -1,20 +1,21 @@
#!/bin/sh
# Copyright (C) 2015-2016 OpenWrt.org
+# Copyright (C) 2017 LEDE project
. /lib/functions/leds.sh
. /lib/brcm2708.sh
set_state() {
case "$(brcm2708_board_name)" in
+ rpi-2-b |\
+ rpi-b-plus)
+ status_led="led1"
+ ;;
rpi-b |\
rpi-cm |\
rpi-zero)
status_led="led0"
;;
- rpi-b-plus |\
- rpi-2-b)
- status_led="led1"
- ;;
esac
case "$1" in