1#!/bin/sh 2# 3# Copyright (C) 2013-2015 OpenWrt.org 4# 5 6. /lib/functions/uci-defaults.sh 7. /lib/imx6.sh 8 9board=$(imx6_board_name) 10 11board_config_update 12 13case "$board" in 14*gw51xx |\ 15*gw52xx) 16 ucidef_set_interface_lan 'eth0' 17 ;; 18*gw53xx |\ 19*gw54xx |\ 20*gw552x) 21 ucidef_set_interfaces_lan_wan 'eth0' 'eth1' 22 ;; 23*wandboard) 24 ucidef_set_interface_wan 'eth0' 25 ;; 26esac 27 28board_config_flush 29 30exit 0 31