mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:32:49 +02:00
Fix the issue where the default gateway is not set
in static mode most of the time. Seems like the bridge is not fast enough at switching to 'forwarding' mode so a short delay before setting the routes is necessary. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6123 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
23d76c341a
commit
4c0cc0fb0b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user