bcm63xx: Don't hardcode the switch ethernet interface in preinit.
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Nov 2010 22:04:26 +0000 (22:04 +0000)
committercshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Nov 2010 22:04:26 +0000 (22:04 +0000)
commit74fd46691ef1887156aefc6f0f07a79b249d24ad
tree43e28469d206767ae86a2f865b6c015c8b9df1b4
parent2ce35911df2b85275e9e6204365b51e3f4dfb75d
bcm63xx: Don't hardcode the switch ethernet interface in preinit.

Currently eth1 is hardcoded as the expected interface switches in diagmode.
This patch replaces the eth1 with the ifname, and also directly tests if
the interface specified by ifname has a switch attached.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24186 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/brcm63xx/base-files/lib/preinit/05_failsafe_config_switch_brcm63xx
target/linux/brcm63xx/base-files/lib/preinit/15_set_preinit_interface_brcm63xx
This page took 0.026839 seconds and 4 git commands to generate.