zynq: fix detection of the zybo board
[openwrt/openwrt.git] / target / linux / zynq / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 # Copyright (C) 2015 OpenWrt.org
3
4 . /lib/functions/uci-defaults.sh
5
6 board_config_update
7
8 case "$(board_name)" in
9 digilent,zynq-zybo | \
10 xlnx,zynq-zc702 | \
11 xlnx,zynq-zed)
12 ucidef_set_interface_lan 'eth0'
13 ;;
14 *)
15 echo "Unsupported hardware. Network interfaces not intialized"
16 ;;
17 esac
18
19 board_config_flush
20
21 exit 0