diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-10-29 17:26:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-10-29 17:26:59 +0000 |
commit | 9b75b9e35c9d9333cdfe303a1eb903032300d242 (patch) | |
tree | 6687413922906d71a5578cdef70b30d34f4a0748 /package/base-files/files | |
parent | a4f11ca22e6f69d2feab4f239eb84d35f7cbe555 (diff) | |
download | mtk-20170518-9b75b9e35c9d9333cdfe303a1eb903032300d242.zip mtk-20170518-9b75b9e35c9d9333cdfe303a1eb903032300d242.tar.gz mtk-20170518-9b75b9e35c9d9333cdfe303a1eb903032300d242.tar.bz2 |
don't bring down interfaces when preparing them
SVN-Revision: 13079
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index dfee674..b89168e 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" } |