RHEL 5 smart command output
authorJamie Cameron <jcameron@webmin.com>
Fri, 24 Aug 2007 18:25:20 +0000 (18:25 +0000)
committerJamie Cameron <jcameron@webmin.com>
Fri, 24 Aug 2007 18:25:20 +0000 (18:25 +0000)
smart-status/smart-status-lib.pl

index a46dfbd..58a630e 100644 (file)
@@ -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;