2
0
forked from Ivasoft/openwrt

brcm47xx: migrate network config to board detection framework

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47866
This commit is contained in:
Jo-Philipp Wich
2015-12-11 15:19:43 +00:00
parent 244173a093
commit b0b8293b7e
3 changed files with 173 additions and 241 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2014 OpenWrt.org
# Copyright (C) 2014-2015 OpenWrt.org
#
uci show network | grep "\.vlan=0"
@@ -15,8 +15,8 @@ local wan_proto="$(uci -q get network.wan.proto)"
local wan_ipaddr="$(uci -q get network.wan.ipaddr)"
local wan_netmask="$(uci -q get network.wan.netmask)"
rm /etc/config/network
/etc/init.d/netconfig start
echo "" > /etc/config/network
config_generate
uci set network.lan.proto=$lan_proto
uci set network.lan.ipaddr=$lan_ipaddr