Skip to content
Snippets Groups Projects
Commit 91e2f1e9 authored by John Crispin's avatar John Crispin
Browse files

brcm2708: Use uci-defaults for network config


By using uci-defaults force_link is enabled, which fixes some link issues if ethernet cable isn't connected when LAN is initialized.

Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 41583
parent a145a22f
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2006 OpenWrt.org
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config interface lan
option ifname eth0
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
#!/bin/sh
# Copyright (C) 2014 OpenWrt.org
[ -e /etc/config/network ] && exit 0
touch /etc/config/network
. /lib/functions/uci-defaults.sh
ucidef_set_interface_loopback
ucidef_set_interface_lan "eth0"
uci commit network
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment