projects
/
openwrt
/
staging
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3891205
)
Fix the issue where the default gateway is not set in static mode most of the time...
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 17 Jan 2007 21:29:53 +0000
(21:29 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 17 Jan 2007 21:29:53 +0000
(21:29 +0000)
SVN-Revision: 6123
package/base-files/files/lib/network/config.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/network/config.sh
b/package/base-files/files/lib/network/config.sh
index 96890acacd87daf3845683ed503db9dda00d07f8..ffce9f6aa3e8297a523dcc2bc95af201795d2a4f 100755
(executable)
--- a/
package/base-files/files/lib/network/config.sh
+++ b/
package/base-files/files/lib/network/config.sh
@@
-97,6
+97,12
@@
setup_interface() {
$DEBUG brctl setfd "br-$config" 0
$DEBUG brctl addif "br-$config" "$iface"
iface="br-$config"
+
+ # need to bring up the bridge and wait a second for
+ # it to switch to the 'forwarding' state, otherwise
+ # it will lose its routes...
+ ifconfig "$iface" up
+ sleep 1
}
;;
esac