diff options
author | Stijn 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 |
commit | a8c2a719fa6b5bcc5c3d796a7603c115a73d2c64 (patch) | |
tree | bce0bd813e643f0932f4f72ddf7ef3da8b306e48 /target/linux/brcm2708/base-files/lib | |
parent | 2543e986ad357eb0301b4643184c917d42ec30bf (diff) | |
download | mtk-20170518-a8c2a719fa6b5bcc5c3d796a7603c115a73d2c64.zip mtk-20170518-a8c2a719fa6b5bcc5c3d796a7603c115a73d2c64.tar.gz mtk-20170518-a8c2a719fa6b5bcc5c3d796a7603c115a73d2c64.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')
-rw-r--r-- | target/linux/brcm2708/base-files/lib/brcm2708.sh | 21 | ||||
-rw-r--r-- | target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 | 7 |
2 files changed, 15 insertions, 13 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" ;; diff --git a/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 b/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 index 578172e..4401c87 100644 --- a/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 +++ b/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 @@ -1,14 +1,15 @@ #!/bin/sh # Copyright (C) 2015-2016 OpenWrt.org +# Copyright (C) 2017 LEDE project . /lib/brcm2708.sh set_preinit_iface() { case "$(brcm2708_board_name)" in - rpi-b |\ - rpi-b-plus |\ rpi-2-b |\ - rpi-3-b) + rpi-3-b |\ + rpi-b |\ + rpi-b-plus) ifname=eth0 ;; esac |