brcm47xx: migrate network config to board detection framework
[openwrt/openwrt.git] / target / linux / brcm47xx / base-files / etc / uci-defaults / 03_network_migration
index cef5add106be1ffeea3c7e6414cf4f9d2e1a882d..912fe96224737a836df33fa84938a9bd858b860d 100644 (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