base-files: config_generate: do not remove previously generated interfaces
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 25 Nov 2015 15:43:43 +0000 (15:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 25 Nov 2015 15:43:43 +0000 (15:43 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 47647

package/base-files/files/bin/config_generate

index 29fec8e94645e30144654def1db6e211b814dfad..64e0888368702559ec77b074250f61ba1c24b913 100755 (executable)
@@ -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'