sunxi: fix typo in uci-defaults network config
[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 "Olimex A13-Olinuxino")
24         ucidef_set_interface_lan 'wlan0'
25         ;;
26 esac
27
28 uci commit network
29
30 exit 0