#1639 Better Solaris OS detection (use portable method that actually works)

This commit is contained in:
Andrzej Szeszo 2013-05-10 15:19:47 +02:00
parent ccfd321ef9
commit c47522658e
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module VagrantPlugins
# Contributed by Blake Irvin <b.irvin@modcloth.com>
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("uname -o | grep Solaris")
machine.communicate.test("uname -s | grep SunOS")
end
end
end