diff options
Diffstat (limited to 'target/linux/brcm2708/base-files/lib/brcm2708.sh')
-rw-r--r-- | target/linux/brcm2708/base-files/lib/brcm2708.sh | 21 |
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 ab7a23da96..cebec644c0 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" ;; |