2
0
forked from Ivasoft/openwrt

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: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 41583
This commit is contained in:
John Crispin
2014-07-12 06:50:21 +00:00
parent a145a22f66
commit 91e2f1e9a6
2 changed files with 15 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
#!/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