diff options
author | Luka Perkov <luka@openwrt.org> | 2013-05-29 01:27:29 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-05-29 01:27:29 +0000 |
commit | 4b21af426836d619f3251c90fc26475f6fee2fc5 (patch) | |
tree | 1617e076fb12470b9fbdd0f7a86ebd1f157b3f19 /target/linux/imx6/base-files/etc/uci-defaults/02_network | |
parent | 846e3d40a02bb40f22dba03900ff79c085f4219d (diff) | |
download | upstream-4b21af426836d619f3251c90fc26475f6fee2fc5.tar.gz upstream-4b21af426836d619f3251c90fc26475f6fee2fc5.tar.bz2 upstream-4b21af426836d619f3251c90fc26475f6fee2fc5.zip |
imx6: add new target
SVN-Revision: 36753
Diffstat (limited to 'target/linux/imx6/base-files/etc/uci-defaults/02_network')
-rw-r--r-- | target/linux/imx6/base-files/etc/uci-defaults/02_network | 25 |
1 files changed, 25 insertions, 0 deletions
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 |