3 # Copyright (C) 2011-2015 OpenWrt.org
6 . /lib/functions/uci-defaults.sh
7 . /lib/functions/system.sh
8 . /lib/functions/lantiq.sh
22 lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
23 wan_mac=$(macaddr_add "$lan_mac" 1)
24 ucidef_set_interface_lan 'eth0'
28 ucidef_set_interface_lan 'eth0'
31 ucidef_set_interface_lan 'eth0'
35 lantiq_setup_dsl_helper "$annex"
37 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
38 [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"