From 4b21af426836d619f3251c90fc26475f6fee2fc5 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Wed, 29 May 2013 01:27:29 +0000 Subject: imx6: add new target SVN-Revision: 36753 --- target/linux/imx6/base-files/etc/inittab | 3 +++ .../imx6/base-files/etc/uci-defaults/02_network | 25 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 target/linux/imx6/base-files/etc/inittab create mode 100644 target/linux/imx6/base-files/etc/uci-defaults/02_network (limited to 'target/linux/imx6/base-files/etc') 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 -- cgit v1.2.3