projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I think keys for root's auth keys should not be our every-day ssh key. they should...
[mirror/dsa-puppet.git]
/
facts
/
raidarray.rb
diff --git
a/facts/raidarray.rb
b/facts/raidarray.rb
index
8a09a71
..
d7bf8a9
100644
(file)
--- a/
facts/raidarray.rb
+++ b/
facts/raidarray.rb
@@
-4,7
+4,7
@@
Facter.add("smartarraycontroller") do
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
$?.exitstatus == 0
+ if
(($?.exitstatus == 0) && (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/
}