sunxi: init eth0 as lan instead of wan, add a couple boards
authorZoltan Herpai <wigyori@uid0.hu>
Thu, 20 Mar 2014 22:46:18 +0000 (22:46 +0000)
committerZoltan Herpai <wigyori@uid0.hu>
Thu, 20 Mar 2014 22:46:18 +0000 (22:46 +0000)
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 39973

target/linux/sunxi/base-files/etc/uci-defaults/02_network

index 48781e5e00dbe7b8b9c6cfbe863e5decc716e150..2f9ca712c68e11277d192aa721adf0fd1b576b59 100644 (file)
@@ -12,8 +12,10 @@ touch /etc/config/network
 ucidef_set_interface_loopback
 
 case "`cat /proc/device-tree/model`" in
-"Cubietech Cubieboard")
-       ucidef_set_interface_wan 'eth0'
+"Cubietech Cubieboard" |\
+"Cubietech Cubieboard2" |\
+"Olimex A20-Olinuxino Micro")
+       ucidef_set_interface_lan 'eth0'
        ;;
 esac