bring up the ethernet driver before loading the switch drivers on broadcom (fixes #1520)

SVN-Revision: 7126
This commit is contained in:
Felix Fietkau 2007-05-07 17:37:05 +00:00
parent 0700d39d4e
commit 5b554fa8a4

View file

@ -66,11 +66,11 @@ case "$(cat /proc/diag/model)" in
"ASUS (unknown, BCM4702)") ifname=eth1;; "ASUS (unknown, BCM4702)") ifname=eth1;;
esac esac
ifconfig $ifname 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up
insmod switch-core insmod switch-core
insmod switch-robo || insmod switch-adm || rmmod 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 ] && { [ -d /proc/switch/eth0 ] && {
echo 1 > /proc/switch/eth0/reset echo 1 > /proc/switch/eth0/reset