Signed-off-by: Stephen Gran <steve@lobefin.net>
setcode do
ishp = "false"
lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
setcode do
ishp = "false"
lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
- if (lspciexists && (FileTest.exist?("/proc/bus/pci"))
+ if (lspciexists && (FileTest.exist?("/proc/bus/pci")))
%x{lspci 2>&1}.each { |s|
ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
}
%x{lspci 2>&1}.each { |s|
ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
}