From 6b2112610930f34361001f86d7f0896a375a6f4b Mon Sep 17 00:00:00 2001 From: luka Date: Wed, 29 May 2013 01:27:29 +0000 Subject: imx6: add new target git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36753 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../imx6/base-files/etc/uci-defaults/02_network | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 target/linux/imx6/base-files/etc/uci-defaults/02_network (limited to 'target/linux/imx6/base-files/etc/uci-defaults') 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