[brcm-2.4] add migration code to automatically convert old to new switch config on...
[openwrt-10.03/.git] / target / linux / brcm-2.4 / base-files / etc / preinit.arch
index 25d11d96ab417b69c79aace5a233f47a6d856ac1..e62360e44c9aa8e898db8fbf6043210f6bfc0c25 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,6 +46,9 @@ check_module () {
   return $?
 }
 
+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*"