openwrtv4/target/linux/imx6/base-files/etc/uci-defaults/02_network
Luka Perkov 4b21af4268 imx6: add new target
SVN-Revision: 36753
2013-05-29 01:27:29 +00:00

25 lines
339 B
Bash

#!/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