2013-05-29 01:27:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2015-12-03 23:07:20 +00:00
|
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
2013-05-29 01:27:29 +00:00
|
|
|
#
|
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2014-06-26 10:14:13 +00:00
|
|
|
. /lib/imx6.sh
|
2014-06-18 10:08:16 +00:00
|
|
|
|
|
|
|
board=$(imx6_board_name)
|
2013-05-29 01:27:29 +00:00
|
|
|
|
2015-12-03 23:07:20 +00:00
|
|
|
board_config_update
|
2013-05-29 01:27:29 +00:00
|
|
|
|
2014-06-18 10:08:16 +00:00
|
|
|
case "$board" in
|
2015-10-10 12:35:02 +00:00
|
|
|
*gw51xx |\
|
|
|
|
*gw52xx)
|
2013-09-13 21:50:35 +00:00
|
|
|
ucidef_set_interface_lan 'eth0'
|
|
|
|
;;
|
2015-10-10 12:35:02 +00:00
|
|
|
*gw53xx |\
|
|
|
|
*gw54xx |\
|
|
|
|
*gw552x)
|
2013-09-20 01:59:30 +00:00
|
|
|
ucidef_set_interfaces_lan_wan 'eth0' 'eth1'
|
|
|
|
;;
|
2015-10-10 12:35:02 +00:00
|
|
|
*wandboard)
|
2013-05-29 01:27:29 +00:00
|
|
|
ucidef_set_interface_wan 'eth0'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2015-12-03 23:07:20 +00:00
|
|
|
board_config_flush
|
2013-05-29 01:27:29 +00:00
|
|
|
|
|
|
|
exit 0
|