make etehrent work on wrt350n, thx sn9
[openwrt/svn-archive/archive.git] / target / linux / brcm-2.4 / base-files / etc / preinit.arch
index 25d11d96ab417b69c79aace5a233f47a6d856ac1..a90d314e256ec13743506e45b2d750780ecaf711 100755 (executable)
@@ -37,8 +37,6 @@ case "$(cat /proc/diag/model)" in
        "Sitecom WL-105b") ifname=eth1;;
 esac
 
-failsafe_ip
-
 check_module () {
   module="$1"; shift; params="$*"
 
@@ -48,11 +46,14 @@ check_module () {
   return $?
 }
 
+check_module tg3
 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