diff options
author | John Crispin <john@openwrt.org> | 2013-06-10 08:24:56 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-06-10 08:24:56 +0000 |
commit | fc9532aeaaa73c49e50f1052f210adfda0d0c3ed (patch) | |
tree | 530d19b4add55fc19166781ca0c99fe8eefc3443 /target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips | |
parent | 30786d2dd0e0063b56ba5e616e868f4e6775eaad (diff) | |
download | mtk-20170518-fc9532aeaaa73c49e50f1052f210adfda0d0c3ed.zip mtk-20170518-fc9532aeaaa73c49e50f1052f210adfda0d0c3ed.tar.gz mtk-20170518-fc9532aeaaa73c49e50f1052f210adfda0d0c3ed.tar.bz2 |
ramips: add HAME MPR-A2 support
This patch adds support for HAME MPR-A2 router using a DTS file.
The platform is Ralink RT5350.
http://wiki.openwrt.org/toh/hame/mpr-a2
Signed-off-by: Dmitry Shmygov <shmygov@rambler.ru>
SVN-Revision: 36898
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips index c8b7f2a..edc5a12 100644 --- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips +++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips @@ -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 } |