projects
/
openwrt
/
staging
/
mkresin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0700d39
)
bring up the ethernet driver before loading the switch drivers on broadcom (fixes...
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 7 May 2007 17:37:05 +0000
(17:37 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 7 May 2007 17:37:05 +0000
(17:37 +0000)
SVN-Revision: 7126
target/linux/brcm-2.4/base-files/default/etc/preinit
patch
|
blob
|
history
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 4513d6382d69f99954fd52156dd66a02c5161ae0..7a61c9412e765ef93fed6c80e27f08f39e95225c 100755
(executable)
--- 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