aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/base-files/etc
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
commit4a7d83ad5e3a377885ad6c9a4c1ddae38c3614bc (patch)
tree1c7f2764ec5c47e1a573ffbbd52f9332c0ae4574 /target/linux/sunxi/base-files/etc
parent6d6902cac104e69346389207cf106d3d51d9dd1b (diff)
downloadupstream-4a7d83ad5e3a377885ad6c9a4c1ddae38c3614bc.tar.gz
upstream-4a7d83ad5e3a377885ad6c9a4c1ddae38c3614bc.tar.bz2
upstream-4a7d83ad5e3a377885ad6c9a4c1ddae38c3614bc.zip
sunxi: add new target
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38651 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/sunxi/base-files/etc')
-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