diff options
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() { |