add a check for brctl in the unbridge() function (fixes #1417)

SVN-Revision: 6410
owl
Felix Fietkau 2007-02-27 23:34:14 +00:00
parent 90a57bbefb
commit c1ab24d04a
1 changed files with 2 additions and 1 deletions

View File

@ -196,6 +196,7 @@ 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