2 # Copyright (C) 2011-2015 OpenWrt.org
5 . /lib/functions/uci-defaults.sh
6 . /lib/functions/system.sh
7 . /lib/functions/lantiq.sh
9 lantiq_setup_interfaces()
15 ucidef_set_interface_lan 'eth0'
28 lantiq_setup_dsl_helper "$annex"
39 lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
40 wan_mac=$(macaddr_add "$lan_mac" 1)
44 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
45 [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
50 lantiq_setup_interfaces $board
51 lantiq_setup_dsl $board
52 lantiq_setup_macs $board