From b0b8293b7e0cf6102dca56b47bf25a92b8feba66 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 11 Dec 2015 15:19:43 +0000 Subject: brcm47xx: migrate network config to board detection framework Signed-off-by: Jo-Philipp Wich SVN-Revision: 47866 --- .../linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'target/linux/brcm47xx/base-files/etc/uci-defaults') 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 -- cgit v1.2.3