From b0ad78224928cc5c4e24a12a7d33e332c3e78cd0 Mon Sep 17 00:00:00 2001 From: Andrzej Szeszo Date: Mon, 22 Apr 2013 19:05:15 +0200 Subject: [PATCH] #1639 Better Solaris OS detection --- plugins/guests/solaris/guest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/solaris/guest.rb b/plugins/guests/solaris/guest.rb index 06b2ae375..555ef23e7 100644 --- a/plugins/guests/solaris/guest.rb +++ b/plugins/guests/solaris/guest.rb @@ -7,7 +7,7 @@ module VagrantPlugins # Contributed by Blake Irvin class Guest < Vagrant.plugin("2", :guest) def detect?(machine) - machine.communicate.test("grep 'Solaris' /etc/release") + machine.communicate.test("uname -o|grep Solaris") end end end