summaryrefslogtreecommitdiff
path: root/target/linux/brcm-2.4/base-files/etc
diff options
context:
space:
mode:
authorAndy Boyett <agb@openwrt.org>2009-11-01 01:09:56 +0000
committerAndy Boyett <agb@openwrt.org>2009-11-01 01:09:56 +0000
commit260aee67dc85367ce2eec79b2f4057f7fc15c16c (patch)
treec1f1cf14a0bf40a34769d87c8bdb7985ba08b7d2 /target/linux/brcm-2.4/base-files/etc
parent9be77f866930fc7e7e9858958c1174b832ce6bb9 (diff)
downloadmtk-20170518-260aee67dc85367ce2eec79b2f4057f7fc15c16c.zip
mtk-20170518-260aee67dc85367ce2eec79b2f4057f7fc15c16c.tar.gz
mtk-20170518-260aee67dc85367ce2eec79b2f4057f7fc15c16c.tar.bz2
fix failsafe, was accidentally broken by r18214. Thanks Daniel Gimpelevich
SVN-Revision: 18253
Diffstat (limited to 'target/linux/brcm-2.4/base-files/etc')
-rwxr-xr-xtarget/linux/brcm-2.4/base-files/etc/preinit.arch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm-2.4/base-files/etc/preinit.arch b/target/linux/brcm-2.4/base-files/etc/preinit.arch
index a90d314..e62360e 100755
--- a/target/linux/brcm-2.4/base-files/etc/preinit.arch
+++ b/target/linux/brcm-2.4/base-files/etc/preinit.arch
@@ -47,13 +47,13 @@ check_module () {
}
check_module tg3
+failsafe_ip
+
insmod switch-core
check_module switch-robo || check_module switch-adm || {
check_module bcm57xx activate_gpio=0x4 && cpu_port="8u*"
} || rmmod switch-core
-failsafe_ip
-
[ -d /proc/switch/eth0 ] && {
echo 1 > /proc/switch/eth0/reset