diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-12-11 15:19:43 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-12-11 15:19:43 +0000 |
commit | f363faaf07d7f15473d3efc69686f6f8f57f9b68 (patch) | |
tree | 0b952f39b5f78a186f0d3435eee5a7c963eaff89 /target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration | |
parent | 9e9b14a6b74f88448a5dc9ed809db8711ca6d80d (diff) | |
download | master-187ad058-f363faaf07d7f15473d3efc69686f6f8f57f9b68.tar.gz master-187ad058-f363faaf07d7f15473d3efc69686f6f8f57f9b68.tar.bz2 master-187ad058-f363faaf07d7f15473d3efc69686f6f8f57f9b68.zip |
brcm47xx: migrate network config to board detection framework
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47866 3c298f89-4303-0410-b956-a3cf2f4a3e73
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_migration | 6 |
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 |