aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-11-05 08:00:34 +0000
committerLuka Perkov <luka@openwrt.org>2013-11-05 08:00:34 +0000
commitcb07269988cd3be7cbbd3278081c5688ae8d7616 (patch)
tree140051364b271b5d49c01c572e3e534f7e0d0842 /target/linux/sunxi/base-files
parentda224973af13644fb0b76d9422234a1f89e53134 (diff)
downloadupstream-cb07269988cd3be7cbbd3278081c5688ae8d7616.tar.gz
upstream-cb07269988cd3be7cbbd3278081c5688ae8d7616.tar.bz2
upstream-cb07269988cd3be7cbbd3278081c5688ae8d7616.zip
sunxi: add new target
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38651
Diffstat (limited to 'target/linux/sunxi/base-files')
-rw-r--r--target/linux/sunxi/base-files/etc/uci-defaults/02_network22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/sunxi/base-files/etc/uci-defaults/02_network b/target/linux/sunxi/base-files/etc/uci-defaults/02_network
new file mode 100644
index 0000000000..48781e5e00
--- /dev/null
+++ b/target/linux/sunxi/base-files/etc/uci-defaults/02_network
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+[ -e /etc/config/network ] && exit 0
+
+touch /etc/config/network
+
+. /lib/functions/uci-defaults.sh
+
+ucidef_set_interface_loopback
+
+case "`cat /proc/device-tree/model`" in
+"Cubietech Cubieboard")
+ ucidef_set_interface_wan 'eth0'
+ ;;
+esac
+
+uci commit network
+
+exit 0