aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-16 19:36:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-16 19:36:22 +0000
commitb1c01b3e3d9bbc1baa51a3d1821b0e5e7c7c2f07 (patch)
tree00fb0a1052afac8474ffeeca2f06b718dec8e68c /package/base-files
parent7fbc2d1b23e623d7d559e0a3ab4816e7ccaf1762 (diff)
downloadupstream-b1c01b3e3d9bbc1baa51a3d1821b0e5e7c7c2f07.tar.gz
upstream-b1c01b3e3d9bbc1baa51a3d1821b0e5e7c7c2f07.tar.bz2
upstream-b1c01b3e3d9bbc1baa51a3d1821b0e5e7c7c2f07.zip
base-files: enable force_link for lan by default
This allows services to bind to it at boot time instead of waiting for a cable to be plugged in Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40773 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/lib/functions/uci-defaults.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index da2093bbb7..f144adefb4 100644
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -172,6 +172,7 @@ ucidef_set_interface_lan() {
uci batch <<EOF
set network.lan='interface'
set network.lan.ifname='$ifname'
+set network.lan.force_link=1
set network.lan.type='bridge'
set network.lan.proto='static'
set network.lan.ipaddr='192.168.1.1'