summaryrefslogtreecommitdiff
path: root/target/linux/imx6/base-files
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-05-29 01:27:29 +0000
committerLuka Perkov <luka@openwrt.org>2013-05-29 01:27:29 +0000
commit4b21af426836d619f3251c90fc26475f6fee2fc5 (patch)
tree1617e076fb12470b9fbdd0f7a86ebd1f157b3f19 /target/linux/imx6/base-files
parent846e3d40a02bb40f22dba03900ff79c085f4219d (diff)
downloadmtk-20170518-4b21af426836d619f3251c90fc26475f6fee2fc5.zip
mtk-20170518-4b21af426836d619f3251c90fc26475f6fee2fc5.tar.gz
mtk-20170518-4b21af426836d619f3251c90fc26475f6fee2fc5.tar.bz2
imx6: add new target
SVN-Revision: 36753
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 0000000..16521ca
--- /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 0000000..74cff80
--- /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