summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-11-25 15:43:43 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-11-25 15:43:43 +0000
commit97baeb2fa47f69f6c3e5871efe1b99515f990527 (patch)
tree84353d5226715a91a7dc6fe68d5336ce760a7f31
parent63c2111e86253763ed9409638db57e9c063f476c (diff)
downloadmtk-20170518-97baeb2fa47f69f6c3e5871efe1b99515f990527.zip
mtk-20170518-97baeb2fa47f69f6c3e5871efe1b99515f990527.tar.gz
mtk-20170518-97baeb2fa47f69f6c3e5871efe1b99515f990527.tar.bz2
base-files: config_generate: do not remove previously generated interfaces
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47647
-rwxr-xr-xpackage/base-files/files/bin/config_generate2
1 files changed, 0 insertions, 2 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index 29fec8e..64e0888 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -183,7 +183,6 @@ calculate_switch_vlans() {
;; esac
uci -q batch <<-EOF
- delete network.$role
set network.$role='interface'
set network.$role.ifname='$device'
EOF
@@ -199,7 +198,6 @@ calculate_switch_vlans() {
;;
wan) uci -q batch <<-EOF
set network.wan.proto='dhcp'
- delete network.wan6
set network.wan6='interface'
set network.wan6.ifname='$device'
set network.wan6.proto='dhcpv6'