diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-29 21:26:36 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-29 21:26:36 +0000 |
commit | 70916d05defae02ed83ba6af2d1e2ba03e062525 (patch) | |
tree | 7efeecf3ca240e7a0b863cce23c23e1568900fc7 /target/linux/brcm-2.4/base-files/etc/preinit.arch | |
parent | 91c099418f210c955d86044405650494e27371b3 (diff) |
make etehrent work on wrt350n, thx sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18214 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm-2.4/base-files/etc/preinit.arch')
-rwxr-xr-x | target/linux/brcm-2.4/base-files/etc/preinit.arch | 5 |
1 files changed, 3 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 25d11d96a..a90d314e2 100755 --- a/target/linux/brcm-2.4/base-files/etc/preinit.arch +++ b/target/linux/brcm-2.4/base-files/etc/preinit.arch @@ -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 |