summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-01-03 01:59:43 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-01-03 01:59:43 +0000
commit22d62d311a5049e5c163fa8ec61ee142722fd92a (patch)
treedf205ecffba037f2932067cff2687f19feda37b4
parentd8f1fa1e382050139006e0f03000275e639d09fe (diff)
downloadmtk-20170518-22d62d311a5049e5c163fa8ec61ee142722fd92a.zip
mtk-20170518-22d62d311a5049e5c163fa8ec61ee142722fd92a.tar.gz
mtk-20170518-22d62d311a5049e5c163fa8ec61ee142722fd92a.tar.bz2
brcm47xx: run ifup before starting the switch
In addition check_module is not needed, nobody checks the return value. SVN-Revision: 34993
-rw-r--r--target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm4
1 files changed, 2 insertions, 2 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 f5aebf5..3ca8456 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
@@ -4,6 +4,8 @@ set_preinit_iface() {
ifname=eth0
insmod diag
+ insmod hwmon
+ insmod tg3
# hardware specific overrides
case "$(cat /proc/diag/model)" in
@@ -26,8 +28,6 @@ check_module () {
}
init_iface() {
- check_module hwmon
- check_module tg3
insmod switch-core
check_module switch-robo || check_module switch-adm || {
check_module bcm57xx activate_gpio=0x4 && cpu_port="8u*"