diff options
Diffstat (limited to 'target/linux/imx6/base-files/etc/uci-defaults')
-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 |