09692cb6d8ed3729bb225212056b49df02146d26
[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 "Cubietech Cubieboard2" |\
17 "LinkSprite pcDuino" |\
18 "LinkSprite pcDuino V3" |\
19 "Olimex A10-OLinuXino-LIME" |\
20 "Olimex A20-Olinuxino Micro")
21 ucidef_set_interface_lan 'eth0'
22 ;;
23 esac
24
25 uci commit network
26
27 exit 0