- ishp = "false"
- lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
- if (lspciexists && (FileTest.exist?("/proc/bus/pci"))
- %x{lspci 2>&1}.each { |s|
- ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
- }
- end
- ishp == "true"