aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/imx6/base-files/etc')
-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