driver.rb: Check for correct bridge device name

This commit is contained in:
Michael Stucki 2015-08-25 10:20:21 +02:00
parent 31bb4eadf9
commit 7eb3be37de

View file

@ -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