ramips: add HAME MPR-A2 support
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / preinit / 07_set_preinit_iface_ramips
index c8b7f2ad381553b511ca1053126026dc781f954b..edc5a12e34df91c19ff0a661f91bc5b519ff1e96 100644 (file)
@@ -6,6 +6,18 @@
 . /lib/ramips.sh
 
 ramips_set_preinit_iface() {
+       local board=$(ramips_board_name)
+
+       case "$board" in
+       mpr-a2)
+               #TODO
+               # Ralink ethernet driver cannot re-open ethernet if it is opened during preinit and then closed.
+               # Looks like Ralink ethernet driver has a problem.
+               # Temporary solution is not to open ethernet during preinit.
+               return 0
+               ;;
+       esac
+
        ifname=eth0
 }