diff options
author | John Crispin <blogic@openwrt.org> | 2013-06-10 08:24:56 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-06-10 08:24:56 +0000 |
commit | ecb32a2174fc391810491eccc0e3063e40c2ebb4 (patch) | |
tree | 1cdc9399acf9a0c3dbf805d13ee94e9c11f1ead8 /target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips | |
parent | a4e76e8e46452f8d0cb0fb8ee09206ddad10f442 (diff) | |
download | master-187ad058-ecb32a2174fc391810491eccc0e3063e40c2ebb4.tar.gz master-187ad058-ecb32a2174fc391810491eccc0e3063e40c2ebb4.tar.bz2 master-187ad058-ecb32a2174fc391810491eccc0e3063e40c2ebb4.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36898 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 c8b7f2ad38..edc5a12e34 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 } |