summaryrefslogtreecommitdiff
path: root/target/linux/brcm2708/base-files/lib/brcm2708.sh
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:55:37 +0100
commite091e8951d2672d472deba8079d6569f3fec8566 (patch)
tree44ccae62eb4c8c068f064a30d29c5e3fc5181203 /target/linux/brcm2708/base-files/lib/brcm2708.sh
parent8b52a8906bf376610e5a8d051ead1d50610e6da1 (diff)
downloadmtk-20170518-e091e8951d2672d472deba8079d6569f3fec8566.zip
mtk-20170518-e091e8951d2672d472deba8079d6569f3fec8566.tar.gz
mtk-20170518-e091e8951d2672d472deba8079d6569f3fec8566.tar.bz2
brcm2708: order boards and models alphabetically
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/brcm2708/base-files/lib/brcm2708.sh')
-rw-r--r--target/linux/brcm2708/base-files/lib/brcm2708.sh21
1 files changed, 11 insertions, 10 deletions
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
index ab7a23d..cebec64 100644
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh
@@ -1,5 +1,6 @@
#!/bin/sh
# Copyright (C) 2015-2016 OpenWrt.org
+# Copyright (C) 2017 LEDE project
ifname=""
@@ -8,25 +9,25 @@ brcm2708_detect() {
model=$(cat /proc/device-tree/model)
case "$model" in
- "Raspberry Pi Model B Rev"*)
- board_name="rpi-b"
+ "Raspberry Pi 2 Model B Rev"*)
+ board_name="rpi-2-b"
+ ;;
+ "Raspberry Pi 3 Model B Rev"*)
+ board_name="rpi-3-b"
+ ;;
+ "Raspberry Pi Compute Module Rev"*)
+ board_name="rpi-cm"
;;
"Raspberry Pi Model B Plus Rev"* |\
"Raspberry Pi Model B+ Rev"*)
board_name="rpi-b-plus"
;;
- "Raspberry Pi Compute Module Rev"*)
- board_name="rpi-cm"
+ "Raspberry Pi Model B Rev"*)
+ board_name="rpi-b"
;;
"Raspberry Pi Zero Rev"*)
board_name="rpi-zero"
;;
- "Raspberry Pi 2 Model B Rev"*)
- board_name="rpi-2-b"
- ;;
- "Raspberry Pi 3 Model B Rev"*)
- board_name="rpi-3-b"
- ;;
*)
board_name="unknown"
;;