add a check for brctl in the unbridge() function (fixes #1417)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6410 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
f5685b7e3e
commit
81b82549d6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue