projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cb0484
)
RHEL 5 smart command output
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 24 Aug 2007 18:25:20 +0000
(18:25 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 24 Aug 2007 18:25:20 +0000
(18:25 +0000)
smart-status/smart-status-lib.pl
patch
|
blob
|
history
diff --git
a/smart-status/smart-status-lib.pl
b/smart-status/smart-status-lib.pl
index
a46dfbd
..
58a630e
100644
(file)
--- a/
smart-status/smart-status-lib.pl
+++ b/
smart-status/smart-status-lib.pl
@@
-47,6
+47,10
@@
if (&get_smart_version() > 5.0) {
elsif ($out =~ /Device.*is\+Enabled/i) {
$rv{'enabled'} = 1;
}
+ elsif ($out =~ /Device\s+supports\s+SMART\s+and\s+is\s+Enabled/i) {
+ # Added to match output from RHEL5
+ $rv{'enabled'} = 1;
+ }
else {
# Not enabled!
$rv{'enabled'} = 0;