diff --git a/bsp/board_dir300.bsp b/bsp/board_dir300.bsp index c7482ac3..fcbc4306 100644 --- a/bsp/board_dir300.bsp +++ b/bsp/board_dir300.bsp @@ -4,6 +4,9 @@ target=$builddir/$machine board_prepare() { cat ./bsp/$machine/000-squashfs-image-params.patch | patch -p0 -d $target + + cat build_patches/dont_overwrite_wan_config.patch | patch -p0 -d $target + /bin/rm $target/target/linux/atheros/base-files/etc/uci-defaults/network } board_prebuild() { diff --git a/bsp/board_fonera.bsp b/bsp/board_fonera.bsp index c9768c6e..8babd293 100644 --- a/bsp/board_fonera.bsp +++ b/bsp/board_fonera.bsp @@ -4,6 +4,9 @@ target=$builddir/$machine board_prepare() { cat ./bsp/$machine/000-squashfs-image-params.patch | patch -p0 -d $target + + cat build_patches/dont_overwrite_wan_config.patch | patch -p0 -d $target + /bin/rm $target/target/linux/atheros/base-files/etc/uci-defaults/network } board_prebuild() { diff --git a/bsp/dir300/root_file_system/etc/config/network b/bsp/dir300/root_file_system/etc/config/network index 026bdb19..74674940 100644 --- a/bsp/dir300/root_file_system/etc/config/network +++ b/bsp/dir300/root_file_system/etc/config/network @@ -39,5 +39,6 @@ config 'switch_vlan' 'eth0_3' config 'interface' 'ethmesh' option 'ifname' 'eth0.3' -config 'interface' 'wan' +config 'interface' 'unused' option 'ifname' 'eth0.2' + option 'proto' 'static' diff --git a/bsp/fonera/root_file_system/etc/config/network b/bsp/fonera/root_file_system/etc/config/network index 4ffd3114..e5c49c07 100644 --- a/bsp/fonera/root_file_system/etc/config/network +++ b/bsp/fonera/root_file_system/etc/config/network @@ -31,8 +31,9 @@ config 'interface' 'wlanmesh' # this is for the WAN/VPN on the Ethernet Port -config 'interface' 'wan' +config 'interface' 'unused' option 'ifname' 'eth0' + option 'proto' 'static' config 'interface' 'mesh' option 'type' 'bridge' option 'ifname' 'bat0 tap0' diff --git a/build_patches/dont_overwrite_wan_config.patch b/build_patches/dont_overwrite_wan_config.patch new file mode 100644 index 00000000..6ffb2f48 --- /dev/null +++ b/build_patches/dont_overwrite_wan_config.patch @@ -0,0 +1,38 @@ +Index: package/base-files/files/lib/functions/uci-defaults.sh +=================================================================== +--- package/base-files/files/lib/functions/uci-defaults.sh (Revision 35298) ++++ package/base-files/files/lib/functions/uci-defaults.sh (Arbeitskopie) +@@ -166,33 +166,15 @@ + + ucidef_set_interface_lan() { + local ifname=$1 +- +- uci batch <