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 | 5b554fa8a4736459207333b4fcc5146df85b239c (patch) | |
tree | fbfbec1439105d473e6fde9fdea3a9fe4e4bb67d /target/linux/brcm-2.4/base-files | |
parent | 0700d39d4e1cb9f1a2e7c58fba5b80ce7653f6a1 (diff) | |
download | mtk-20170518-5b554fa8a4736459207333b4fcc5146df85b239c.zip mtk-20170518-5b554fa8a4736459207333b4fcc5146df85b239c.tar.gz mtk-20170518-5b554fa8a4736459207333b4fcc5146df85b239c.tar.bz2 |
bring up the ethernet driver before loading the switch drivers on broadcom (fixes #1520)
SVN-Revision: 7126
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 4513d63..7a61c94 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 |