aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/bin/config_generate8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index b6675f12ce..6da386faff 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -49,7 +49,6 @@ generate_network() {
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
@@ -64,6 +63,7 @@ generate_network() {
set network.$1.ip6assign='60'
EOF
;;
+
wan)
uci -q batch <<-EOF
set network.$1.proto='dhcp'
@@ -73,6 +73,12 @@ generate_network() {
set network.wan6.proto='dhcpv6'
EOF
;;
+
+ *)
+ uci -q batch <<-EOF
+ set network.$1.force_link=1
+ EOF
+ ;;
esac
}