From: nbd Date: Wed, 29 Oct 2008 17:26:59 +0000 (+0000) Subject: don't bring down interfaces when preparing them X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=3f95a4242b0407a8cb98de02d7670e13dc33be46;p=openwrt-10.03%2F.git don't bring down interfaces when preparing them git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13079 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index dfee67491..b89168e07 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -90,8 +90,8 @@ prepare_interface() { [ "br-$config" = "$iface" -o -e "$iface" ] && return 0; ifconfig "$iface" 2>/dev/null >/dev/null && { - # make sure the interface is removed from any existing bridge and brought down - ifconfig "$iface" down + # make sure the interface is removed from any existing bridge and deconfigured + ifconfig "$iface" 0.0.0.0 unbridge "$iface" }