#!/bin/sh
# Copyright (C) 2016 D-Team Technology Co.,Ltd. ShenZhen
# Copyright (c) 2016, lintel <lintel.huang@gmail.com>
# Copyright (c) 2016, GuoGuo <gch981213@gmail.com>
#
#
#     警告:对着屏幕的哥们,我们允许你使用此脚本，但不允许你抹去作者的信息,请保留这段话。
#

. /lib/functions.sh
. /lib/ralink.sh
. /lib/functions/uci-defaults-new.sh
. /lib/functions/system.sh

pear_setup_ipaddr()
{
	local board="$1"

	json_select_object network

	json_select "lan"
	[ $? -eq 0 ] || {
		json_select ..
		return
	}

	json_add_string ipaddr "192.168.99.1"

	json_select ..

	json_select ..
}

board_config_update
board=$(board_name)
pear_setup_ipaddr $board
board_config_flush

exit 0
