diff options
author | Mathias Kresin <dev@kresin.me> | 2017-03-26 10:53:35 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-05-05 19:59:18 +0200 |
commit | d49920e45044dfb635a93f317e5b965b5c8afdad (patch) | |
tree | 2805b0028169e03ef244f729b57af2a886e49345 /target/linux/lantiq/base-files/etc/board.d/02_network | |
parent | 79cd14152c4478620eb0280fec9816f39e8a0dc5 (diff) | |
download | upstream-d49920e45044dfb635a93f317e5b965b5c8afdad.tar.gz upstream-d49920e45044dfb635a93f317e5b965b5c8afdad.tar.bz2 upstream-d49920e45044dfb635a93f317e5b965b5c8afdad.zip |
lantiq: fix avm fritz box mac addresses
It has been shown that the Fritz boxes have the correct mac address set
in the wireless calibration data/eeeprom. Use this mac address as base
for the ethernet and xdsl interface increment/decrement the address to
match the values stored in the tffs.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/base-files/etc/board.d/02_network')
-rwxr-xr-x | target/linux/lantiq/base-files/etc/board.d/02_network | 9 |
1 files changed, 9 insertions, 0 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 41d6b7fab3..6140a16035 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -93,7 +93,16 @@ EASY80920NAND|EASY80920NOR) "0:lan:4" "1:lan:3" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0" ;; +FRITZ3370) + wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2439)" 1) + ;; + +FRITZ7320) + wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1) + ;; + FRITZ7360SL) + wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1) ucidef_add_switch "switch0" \ "0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "6t@eth0" ;; |