mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41583 3c298f89-4303-0410-b956-a3cf2f4a3e73
16 lines
233 B
Bash
16 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
|