#!/bin/sh
#

. /lib/functions/uci-defaults.sh
. /lib/ipq806x.sh


lan_mac=$(fw_getenv eth1addr)
ucidef_set_interface_macaddr "lan" $lan_mac
uci set network.lan.proto=dhcp
uci set network.lan.ipaddr=192.168.1.1
uci set network.lan.default_ipaddr=192.168.1.1

uci commit network

exit 0