brcm2708: order boards and models alphabetically
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
committed by
Álvaro Fernández Rojas
parent
2543e986ad
commit
a8c2a719fa
@@ -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 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 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"
|
||||
;;
|
||||
"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 Model B Rev"*)
|
||||
board_name="rpi-b"
|
||||
;;
|
||||
"Raspberry Pi Zero Rev"*)
|
||||
board_name="rpi-zero"
|
||||
;;
|
||||
*)
|
||||
board_name="unknown"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user