diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-07-14 13:19:58 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-07-14 13:19:58 +0000 |
commit | 3bc90a4d23e05be4a54edfccae3d45eefcfa5557 (patch) | |
tree | ab387b07ef6b90afeeb88a2487eb1b5960c406ec /target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm | |
parent | 17bbc928823c15ed47b6302c916fba23c90e6499 (diff) | |
download | upstream-3bc90a4d23e05be4a54edfccae3d45eefcfa5557.tar.gz upstream-3bc90a4d23e05be4a54edfccae3d45eefcfa5557.tar.bz2 upstream-3bc90a4d23e05be4a54edfccae3d45eefcfa5557.zip |
brcm47xx: fix switch handling
This fixes some problems with the switch handling
* It now send the messages again to indicate a button for failsafe mode should be pressed
* it does not leak packages between wan and lan any more
* the switch works again in normal mode
The Ethernet connection has to be up when the switch driver switch-robo
is insmoded therefor we just do it again.
Explicitly set enable_vlan to prevent leaking packages.
This should close #13869, #13868 and #13716
SVN-Revision: 37286
Diffstat (limited to 'target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm')
-rw-r--r-- | target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm b/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm index ac18e0baf2..76382e5cee 100644 --- a/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm +++ b/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm @@ -11,7 +11,17 @@ set_preinit_iface() { "ASUS (unknown, BCM4702)") ifname=eth1;; "Sitecom WL-105b") ifname=eth1;; esac + + # The interface has to be up to configure the switch ifconfig $ifname 0.0.0.0 up + [ -f /lib/modules/`uname -r`/switch-robo.ko ] && { + rmmod switch-robo + insmod switch-robo + } + [ -f /lib/modules/`uname -r`/switch-adm.ko ] && { + rmmod switch-adm + insmod switch-adm + } } init_iface() { |