From: Felix Fietkau Date: Mon, 7 May 2007 17:37:05 +0000 (+0000) Subject: bring up the ethernet driver before loading the switch drivers on broadcom (fixes... X-Git-Tag: reboot~29310 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5b554fa8a4736459207333b4fcc5146df85b239c;p=oweals%2Fopenwrt.git bring up the ethernet driver before loading the switch drivers on broadcom (fixes #1520) SVN-Revision: 7126 --- 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