From c364b2ebb3b3cc84e729f92b4f9fd0cb80650a0b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 28 Feb 2010 17:17:51 +0100 Subject: [PATCH] Merge mptcontroller and mptraid facts --- facts/raidarray.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/facts/raidarray.rb b/facts/raidarray.rb index 35a4126f8..592f006cf 100644 --- a/facts/raidarray.rb +++ b/facts/raidarray.rb @@ -5,13 +5,6 @@ Facter.add("smartarraycontroller") do end end -Facter.add("mptcontroller") do - confine :kernel => :linux - setcode do - FileTest.exist?("/proc/mpt/summary") - end -end - Facter.add("ThreeWarecontroller") do confine :kernel => :linux setcode do @@ -34,7 +27,7 @@ end Facter.add("mptraid") do setcode do - FileTest.exist?("/dev/mptctl") or FileTest.exist?("/dev/mpt9") + FileTest.exist?("/dev/mptctl") or FileTest.exist?("/dev/mpt9") or FileTest.exist?("/proc/mpt/summary") end end -- 2.20.1