Skip to content

Commit

Permalink
bcm53xx: generate proper network config for Tenda AC9
Browse files Browse the repository at this point in the history
It's a more complex device with 2 interfaces on the SoC, one we can use
for LAN and another for WAN.

Signed-off-by: Rafał Miłecki <[email protected]>
  • Loading branch information
Rafał Miłecki committed Aug 18, 2016
1 parent 18eebfe commit 31fada8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions target/linux/bcm53xx/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
board_config_update

board=$(cat /proc/device-tree/compatible | tr '\0' '\t' | cut -f 1)

case "$board" in
tenda,ac9)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "8@eth0" "0:wan" "5@eth1"
board_config_flush
exit 0
;;
esac

case "$board" in
asus,rt-ac87u)
ifname=eth1
Expand Down

0 comments on commit 31fada8

Please sign in to comment.