brcm47xx: migrate basic network settings from old releases
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Jul 2014 21:40:59 +0000 (21:40 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Jul 2014 21:40:59 +0000 (21:40 +0000)
commit2d3be11d24a7bf2f990cb9a7b8f4f930b4f0e374
tree474cb8e391d2d2185cb9a0b92cdb8d8d2b1e1202
parent321dbb218dafcfad97989a409e881d8cd57c4cd8
brcm47xx: migrate basic network settings from old releases

Old OpenWrt releases were using network configs that are not valid
anymore. They were specifying ports tagging in a different way (or were
not tagging CPU at all) and were using VID 0 which is a reserved value.

Modifying network configuration to apply all needed changes would be
pretty tricky. Script /etc/init.d/netconfig that generates new config is
quite complex itself.
So instead let's save the most important settings, regenerate config
from the scratch and restore values. This should work for 99% of users.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41500 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/brcm47xx/base-files/etc/uci-defaults/03_network_migration [new file with mode: 0644]