Only se4t the force_link property for non-lan, non-wan ifaces as it is
unnecessary in the default cases.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 47675
delete network.$1
set network.$1='interface'
set network.$1.ifname='$ifname'
- set network.$1.force_link=1
set network.$1.proto='none'
set network.$1.macaddr='$macaddr'
EOF
set network.$1.ip6assign='60'
EOF
;;
+
wan)
uci -q batch <<-EOF
set network.$1.proto='dhcp'
set network.wan6.proto='dhcpv6'
EOF
;;
+
+ *)
+ uci -q batch <<-EOF
+ set network.$1.force_link=1
+ EOF
+ ;;
esac
}