[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 1b3c924cedef0d311a466bd8b9a2b4d93ef9f676..e62360e44c9aa8e898db8fbf6043210f6bfc0c25 100755 (executable)
@@ -15,7 +15,7 @@ failsafe() {
        }
 
        netmsg 192.168.1.255 "Entering Failsafe!"
-       telnetd -l /bin/login <> /dev/null 2>&1
+       telnetd -l /bin/login.sh <> /dev/null 2>&1
 
        ash --login
 }
@@ -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*"