diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-07 17:37:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-07 17:37:05 +0000 |
commit | 16a69e7c50d658b7a65c78d5b4a966c14fcec7d1 (patch) | |
tree | 209d102c24551c79713744c06f416a325faa19ef /target/linux/brcm-2.4/base-files | |
parent | a1bdcf33aea41d816f1bb1bdeee73094f0faa39e (diff) | |
download | upstream-16a69e7c50d658b7a65c78d5b4a966c14fcec7d1.tar.gz upstream-16a69e7c50d658b7a65c78d5b4a966c14fcec7d1.tar.bz2 upstream-16a69e7c50d658b7a65c78d5b4a966c14fcec7d1.zip |
bring up the ethernet driver before loading the switch drivers on broadcom (fixes #1520)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7126 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm-2.4/base-files')
-rwxr-xr-x | target/linux/brcm-2.4/base-files/default/etc/preinit | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm-2.4/base-files/default/etc/preinit b/target/linux/brcm-2.4/base-files/default/etc/preinit index 4513d6382d..7a61c9412e 100755 --- a/target/linux/brcm-2.4/base-files/default/etc/preinit +++ b/target/linux/brcm-2.4/base-files/default/etc/preinit @@ -66,11 +66,11 @@ case "$(cat /proc/diag/model)" in "ASUS (unknown, BCM4702)") ifname=eth1;; esac +ifconfig $ifname 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up + insmod switch-core insmod switch-robo || insmod switch-adm || rmmod switch-core -ifconfig $ifname 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up - [ -d /proc/switch/eth0 ] && { echo 1 > /proc/switch/eth0/reset |