summaryrefslogtreecommitdiff
path: root/target/linux/mxs/base-files/etc/uci-defaults/02_network
blob: 246cd893c8a8da0da644ee3374da4076c7f7c6b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Copyright (C) 2013 OpenWrt.org

[ -e /etc/config/network ] && exit 0

touch /etc/config/network

. /lib/functions/uci-defaults.sh
. /lib/mxs.sh

ucidef_set_interface_loopback

board=$(mxs_board_name)

case "$board" in
*)
	ucidef_set_interface_lan 'eth0'
	;;
esac

uci commit network

exit 0