mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44304 3c298f89-4303-0410-b956-a3cf2f4a3e73
29 lines
345 B
Bash
29 lines
345 B
Bash
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
#
|
|
|
|
[ -e /etc/config/network ] && exit 0
|
|
|
|
touch /etc/config/network
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/netlogic.sh
|
|
|
|
ucidef_set_interface_loopback
|
|
|
|
case "$board_name" in
|
|
"xlp-evp" |\
|
|
"xlp-fvp" |\
|
|
"xlp-gvp" |\
|
|
"xlp-svp" |\
|
|
*)
|
|
ucidef_set_interface_lan "eth0"
|
|
;;
|
|
|
|
esac
|
|
|
|
uci commit network
|
|
|
|
exit 0
|