summaryrefslogtreecommitdiff
path: root/target/linux/imx6/base-files
diff options
context:
space:
mode:
authorluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-05-29 01:27:29 +0000
committerluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-05-29 01:27:29 +0000
commit6b2112610930f34361001f86d7f0896a375a6f4b (patch)
tree0e499dcd223d3460d7849f512f7fa7421b7cb856 /target/linux/imx6/base-files
parent84235ec9293a4569782bdd31a6ef420b7708de9f (diff)
imx6: add new target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36753 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx6/base-files')
-rw-r--r--target/linux/imx6/base-files/etc/inittab3
-rw-r--r--target/linux/imx6/base-files/etc/uci-defaults/02_network25
2 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/imx6/base-files/etc/inittab b/target/linux/imx6/base-files/etc/inittab
new file mode 100644
index 0000000000..16521ca4cf
--- /dev/null
+++ b/target/linux/imx6/base-files/etc/inittab
@@ -0,0 +1,3 @@
+::sysinit:/etc/init.d/rcS S boot
+::shutdown:/etc/init.d/rcS K shutdown
+ttymxc0::askfirst:/bin/ash --login
diff --git a/target/linux/imx6/base-files/etc/uci-defaults/02_network b/target/linux/imx6/base-files/etc/uci-defaults/02_network
new file mode 100644
index 0000000000..74cff8028e
--- /dev/null
+++ b/target/linux/imx6/base-files/etc/uci-defaults/02_network
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+[ -e /etc/config/network ] && exit 0
+
+. /lib/functions/uci-defaults.sh
+
+touch /etc/config/network
+
+ucidef_set_interface_loopback
+
+board=$(cat /proc/device-tree/model)
+
+case "$board" in
+"Wandboard i.MX6 Dual Lite Board")
+ ucidef_set_interface_wan 'eth0'
+ ;;
+
+esac
+
+uci commit network
+
+exit 0