summaryrefslogtreecommitdiff
path: root/target/linux/netlogic/base-files/etc/uci-defaults/02_network
blob: e271e17097d50c88c8f609a4d8c6ce77c6f51d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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