diff options
author | John Crispin <john@openwrt.org> | 2009-10-29 21:26:36 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2009-10-29 21:26:36 +0000 |
commit | 2d57b56bced3d7c9cd0781b9d9d5a6ac7b0abf2b (patch) | |
tree | 6c0ec8dddee3751ef06546cea6038240540820bc /target/linux/brcm-2.4 | |
parent | 2bbb05cc5ea6e4ee6c9fce27b9ed8b082399193e (diff) | |
download | upstream-2d57b56bced3d7c9cd0781b9d9d5a6ac7b0abf2b.tar.gz upstream-2d57b56bced3d7c9cd0781b9d9d5a6ac7b0abf2b.tar.bz2 upstream-2d57b56bced3d7c9cd0781b9d9d5a6ac7b0abf2b.zip |
make etehrent work on wrt350n, thx sn9
SVN-Revision: 18214
Diffstat (limited to 'target/linux/brcm-2.4')
-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 25d11d96ab..a90d314e25 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 |