91e2f1e9a6
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
15 lines
233 B
Bash
15 lines
233 B
Bash
#!/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
|