ath79: increase max tx ring buffer for ag71xx
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / lib / preinit / 10_fix_eth_mac.sh
1 . /lib/functions/system.sh
2
3 preinit_set_mac_address() {
4 case $(board_name) in
5 avm,fritz1750e|\
6 avm,fritz450e|\
7 avm,fritzdvbc)
8 ip link set dev eth0 address $(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
9 ;;
10 dlink,dap-2695-a1|\
11 dlink,dap-3662-a1)
12 ip link set dev eth0 address $(mtd_get_mac_ascii bdcfg "lanmac")
13 ip link set dev eth1 address $(mtd_get_mac_ascii bdcfg "wanmac")
14 ;;
15 enterasys,ws-ap3705i)
16 ip link set dev eth0 address $(mtd_get_mac_ascii u-boot-env0 ethaddr)
17 ;;
18 extreme-networks,ws-ap3805i|\
19 siemens,ws-ap3610)
20 ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
21 ;;
22 tplink,deco-s4-v2)
23 base_mac=$(mtd_get_mac_encrypted_deco $(find_mtd_part config))
24 ip link set dev eth0 address $base_mac
25 ;;
26 zyxel,nbg6616)
27 ethaddr=$(mtd_get_mac_ascii u-boot-env ethaddr)
28 ip link set dev eth0 address $(macaddr_add $ethaddr 2)
29 ip link set dev eth1 address $(macaddr_add $ethaddr 3)
30 ;;
31 esac
32 }
33
34 boot_hook_add preinit_main preinit_set_mac_address