From: Felix Fietkau Date: Tue, 27 Feb 2007 23:34:14 +0000 (+0000) Subject: add a check for brctl in the unbridge() function (fixes #1417) X-Git-Tag: reboot~29846 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c1ab24d04a54c24677b21138e57f8bb16c588b0b;p=oweals%2Fopenwrt.git add a check for brctl in the unbridge() function (fixes #1417) SVN-Revision: 6410 --- diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 2b1574937b..95954bf15a 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -195,7 +195,8 @@ setup_interface() { unbridge() { local dev="$1" local brdev - + + [ -x /usr/sbin/brctl ] || return 0 brctl show | grep "$dev" >/dev/null && { # interface is still part of a bridge, correct that