edc5a12e34df91c19ff0a661f91bc5b519ff1e96
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / preinit / 07_set_preinit_iface_ramips
1 #!/bin/sh
2 #
3 # Copyright (C) 2013 OpenWrt.org
4 #
5
6 . /lib/ramips.sh
7
8 ramips_set_preinit_iface() {
9 local board=$(ramips_board_name)
10
11 case "$board" in
12 mpr-a2)
13 #TODO
14 # Ralink ethernet driver cannot re-open ethernet if it is opened during preinit and then closed.
15 # Looks like Ralink ethernet driver has a problem.
16 # Temporary solution is not to open ethernet during preinit.
17 return 0
18 ;;
19 esac
20
21 ifname=eth0
22 }
23
24 boot_hook_add preinit_main ramips_set_preinit_iface