Add Failsafe support for Linksys E3000V1 / WRT610NV2
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 4 Feb 2013 22:40:57 +0000 (22:40 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 4 Feb 2013 22:40:57 +0000 (22:40 +0000)
Adds specification of the correct cpu_port for Linksys E3000V1 and WRT610NV2
in /lib/preinit/05_init_interfaces_brcm.  The list of devices will need to
be expanded.  Is there a way to determine the correct cpu_port to use in a
generic sense; for instance, if "/proc/switch/eth0/port/8" exists, or if
"/sys/class/net/eth0/device/driver/module/drivers/bcma:bgmac" exists?  Could
a similar method be used in "/etc/init.d/netconfig"?

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 35491

target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm

index fd2a93526fab42b94728c6b44883552da4e83933..1275b032075a05bb04b5610b0f402720d3779d72 100644 (file)
@@ -14,6 +14,7 @@ set_preinit_iface() {
        # hardware specific overrides
        case "$(cat /proc/diag/model)" in
                "Linksys WAP54G V1") ifname=eth1;;
+               "Linksys E3000 V1"|"Linksys WRT610N V2") cpu_port="8u*";;
                "ASUS WL-HDD") ifname=eth1;;
                "ASUS WL-300g") ifname=eth1;;
                "ASUS (unknown, BCM4702)") ifname=eth1;;