driver.rb: Check for correct bridge device name
This commit is contained in:
parent
31bb4eadf9
commit
7eb3be37de
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ module Vagrant
|
|||
|
||||
def bridge_exists?(bridge_name)
|
||||
@logger.info "Checking whether bridge #{bridge_name} exists"
|
||||
brctl_output = `ip link | grep -q #{bridge_name}`
|
||||
brctl_output = `ip link | egrep -q " #{bridge_name}:"`
|
||||
$?.to_i == 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue