mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 21:09:53 +02:00
don't bring down interfaces when preparing them
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13079 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9909f72e6f
commit
3f95a4242b
@ -90,8 +90,8 @@ prepare_interface() {
|
|||||||
[ "br-$config" = "$iface" -o -e "$iface" ] && return 0;
|
[ "br-$config" = "$iface" -o -e "$iface" ] && return 0;
|
||||||
|
|
||||||
ifconfig "$iface" 2>/dev/null >/dev/null && {
|
ifconfig "$iface" 2>/dev/null >/dev/null && {
|
||||||
# make sure the interface is removed from any existing bridge and brought down
|
# make sure the interface is removed from any existing bridge and deconfigured
|
||||||
ifconfig "$iface" down
|
ifconfig "$iface" 0.0.0.0
|
||||||
unbridge "$iface"
|
unbridge "$iface"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user