projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f5147
)
Better version detection, thanks to Caspar Smit.
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 13 Jan 2010 19:53:09 +0000
(11:53 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 13 Jan 2010 19:53:09 +0000
(11:53 -0800)
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
cd95fb1
..
aea7d7e
100755
(executable)
--- a/
smart-status/smart-status-lib.pl
+++ b/
smart-status/smart-status-lib.pl
@@
-15,8
+15,8
@@
Returns the version number of the SMART tools on this system
sub get_smart_version
{
if (!defined($smartctl_version_cache)) {
- local $out = `$config{'smartctl'} -
h
2>&1 </dev/null`;
- if ($out =~ /
version
\s+(\S+)/i) {
+ local $out = `$config{'smartctl'} -
-version
2>&1 </dev/null`;
+ if ($out =~ /
smartmontools release
\s+(\S+)/i) {
$smartctl_version_cache = $1;
}
}