mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-03 00:07:30 +03:00
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-a3cf2f4a3e73
This commit is contained in:
parent
8eceb512fc
commit
8ab2244c0d
@ -196,6 +196,7 @@ unbridge() {
|
|||||||
local dev="$1"
|
local dev="$1"
|
||||||
local brdev
|
local brdev
|
||||||
|
|
||||||
|
[ -x /usr/sbin/brctl ] || return 0
|
||||||
brctl show | grep "$dev" >/dev/null && {
|
brctl show | grep "$dev" >/dev/null && {
|
||||||
# interface is still part of a bridge, correct that
|
# interface is still part of a bridge, correct that
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user