sunxi: add new target
[openwrt/openwrt.git] / target / linux / sunxi / base-files / etc / uci-defaults / 02_network
1 #!/bin/sh
2 #
3 # Copyright (C) 2013 OpenWrt.org
4 #
5
6 [ -e /etc/config/network ] && exit 0
7
8 touch /etc/config/network
9
10 . /lib/functions/uci-defaults.sh
11
12 ucidef_set_interface_loopback
13
14 case "`cat /proc/device-tree/model`" in
15 "Cubietech Cubieboard")
16 ucidef_set_interface_wan 'eth0'
17 ;;
18 esac
19
20 uci commit network
21
22 exit 0