ishp = "false"
lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
if $?.exitstatus == 0
- %x{lspci}.each { |s|
+ %x{lspci 2>&1}.each { |s|
ishp = "true" if s =~ /RAID bus controller: (.*) Smart Array/
}
end
- ishp
+ ishp == "true"
end
end
is3w = "true" if x =~ /Vendor: 3ware/
}
end
- is3w
+ is3w == "true"
end
end
swraid = "true" if x =~ /md[0-9]+ : active/
}
end
- swraid
+ swraid == "true"
end
end