guests/freebsd: fix network name for vtnet

This commit is contained in:
Mitchell Hashimoto 2014-04-11 16:50:42 -07:00
parent 2057d513cb
commit abd4185565
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ module VagrantPlugins
ifname = ""
machine.communicate.execute(command) do |type, data|
result << data if type == :stdout
if result.split(/\n/).any?{|i| i.match(/vio*/)}
ifname = "vio#{network[:interface]}"
if result.split(/\n/).any?{|i| i.match(/vtnet*/)}
ifname = "vtnet#{network[:interface]}"
else
ifname = "em#{network[:interface]}"
end