aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files/etc
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2017-03-05 21:16:06 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2017-03-08 09:03:27 +0100
commita8c2a719fa6b5bcc5c3d796a7603c115a73d2c64 (patch)
treebce0bd813e643f0932f4f72ddf7ef3da8b306e48 /target/linux/brcm2708/base-files/etc
parent2543e986ad357eb0301b4643184c917d42ec30bf (diff)
downloadupstream-a8c2a719fa6b5bcc5c3d796a7603c115a73d2c64.tar.gz
upstream-a8c2a719fa6b5bcc5c3d796a7603c115a73d2c64.tar.bz2
upstream-a8c2a719fa6b5bcc5c3d796a7603c115a73d2c64.zip
brcm2708: order boards and models alphabetically
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/brcm2708/base-files/etc')
-rwxr-xr-xtarget/linux/brcm2708/base-files/etc/board.d/02_network7
-rw-r--r--target/linux/brcm2708/base-files/etc/diag.sh9
2 files changed, 9 insertions, 7 deletions
diff --git a/target/linux/brcm2708/base-files/etc/board.d/02_network b/target/linux/brcm2708/base-files/etc/board.d/02_network
index 7642c06c49..21e86f4db3 100755
--- a/target/linux/brcm2708/base-files/etc/board.d/02_network
+++ b/target/linux/brcm2708/base-files/etc/board.d/02_network
@@ -1,5 +1,6 @@
#!/bin/sh
# Copyright (C) 2014-2016 OpenWrt.org
+# Copyright (C) 2017 LEDE project
. /lib/functions/uci-defaults.sh
. /lib/brcm2708.sh
@@ -11,10 +12,10 @@ board_config_update
board=$(brcm2708_board_name)
case "$board" in
-rpi-b |\
-rpi-b-plus |\
rpi-2-b |\
-rpi-3-b)
+rpi-3-b |\
+rpi-b |\
+rpi-b-plus)
ucidef_set_interface_lan "eth0"
;;
esac
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