summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration')
-rw-r--r--target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration b/target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration
index cef5add106..912fe96224 100644
--- a/target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration
+++ b/target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration
@@ -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