aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/base-files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm2708/base-files/lib')
-rw-r--r--target/linux/brcm2708/base-files/lib/brcm2708.sh5
-rw-r--r--target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm27087
2 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
index cb4089d8e2..5a59a2826d 100644
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2015 OpenWrt.org
+# Copyright (C) 2015-2016 OpenWrt.org
ifname=""
@@ -21,6 +21,9 @@ brcm2708_detect() {
"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 154b01c4fe..578172e1da 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,7 +1,5 @@
#!/bin/sh
-#
-# Copyright (C) 2015 OpenWrt.org
-#
+# Copyright (C) 2015-2016 OpenWrt.org
. /lib/brcm2708.sh
@@ -9,7 +7,8 @@ set_preinit_iface() {
case "$(brcm2708_board_name)" in
rpi-b |\
rpi-b-plus |\
- rpi-2-b)
+ rpi-2-b |\
+ rpi-3-b)
ifname=eth0
;;
esac