From 71d706f4a1d1451d0c5778b0e79071a872a84d18 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 7 May 2007 17:37:05 +0000 Subject: 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 --- target/linux/brcm-2.4/base-files/default/etc/preinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/brcm-2.4/base-files/default') 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 4513d6382..7a61c9412 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 -- cgit v1.2.3