openwrtv3/target/linux/sunxi/base-files/etc/uci-defaults/02_network
Zoltan Herpai 45e8630a4f sunxi: use sunxi_board_name when generating default network settings
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 44213
2015-01-30 00:14:17 +00:00

26 lines
362 B
Bash

#!/bin/sh
#
# Copyright (C) 2013-2014 OpenWrt.org
#
[ -e /etc/config/network ] && exit 0
touch /etc/config/network
. /lib/sunxi.sh
. /lib/functions/uci-defaults.sh
ucidef_set_interface_loopback
case "$( sunxi_board_name )" in
"olinuxino-micro"*)
ucidef_set_interface_lan 'wlan0'
;;
*)
ucidef_set_interface_lan 'eth0'
;;
esac
uci commit network
exit 0