Skip to content

Commit

Permalink
More liberal SmartOS detection, to compensate for several changes in …
Browse files Browse the repository at this point in the history
…/etc/release format over the last year.
  • Loading branch information
Ben Rockwood authored and btm committed Dec 6, 2012
1 parent 22e4a78 commit 103873e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ohai/plugins/solaris2/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
File.open("/etc/release") do |file|
while line = file.gets
case line
when /^.*(SmartOS).*$/
platform "smartos"
when /^\s*(OmniOS).*r(\d+).*$/
platform "omnios"
platform_version $2
Expand All @@ -54,8 +56,6 @@
platform "solaris2"
when /^\s*(NexentaCore)\s.*$/
platform "nexentacore"
when /^\s*(SmartOS)\s.*$/
platform "smartos"
end
end
end

0 comments on commit 103873e

Please sign in to comment.