diff options
author | Sigurd Hogsbro <sigurd@hogsbro.org> | 2016-08-18 07:43:16 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-08-20 05:35:42 +0200 |
commit | 63857a2d6a01e7393d199b60799f44613ddb8b8b (patch) | |
tree | 12a51d012163e8a4554657d4e805feb5150e0eb4 /target/linux/lantiq/base-files/etc | |
parent | 334fdea08d71079d6e0f5bc8dc79790c0402ae2a (diff) | |
download | upstream-63857a2d6a01e7393d199b60799f44613ddb8b8b.tar.gz upstream-63857a2d6a01e7393d199b60799f44613ddb8b8b.tar.bz2 upstream-63857a2d6a01e7393d199b60799f44613ddb8b8b.zip |
lantiq: generate switch configuration for BTHOMEHUBV2B.
Split from HH3A as it appears to have a different switch.
https://en.wikipedia.org/wiki/BT_Home_Hub#Models_and_technical_specifications
Signed-off-by: Sigurd Hogsbro <sigurd@hogsbro.org>
Diffstat (limited to 'target/linux/lantiq/base-files/etc')
-rwxr-xr-x | target/linux/lantiq/base-files/etc/board.d/02_network | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network index cda2d2d9ac..1bdd57a8a1 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -118,7 +118,14 @@ ARV7519RW22) "0:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "5:lan:5" "6t@eth0" ;; -BTHOMEHUBV2B|BTHOMEHUBV3A) +BTHOMEHUBV2B) + lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) + wan_mac=$(macaddr_add "$lan_mac" 1) + ucidef_add_switch "switch0" \ + "1:lan" "2:lan" "3:lan" "4:lan" "5t@eth0" + ;; + +BTHOMEHUBV3A) lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_set_interface_lan 'eth0' |