--- check_smartmon.orig	2015-07-22 17:32:58 UTC
+++ check_smartmon
@@ -59,7 +59,7 @@ def parseCmdLine(args):
                         metavar="LEVEL", help="set verbosity level to LEVEL; defaults to 0 (quiet), \
                                         possible values go up to 3")
         parser.add_option("-t", "--type", action="store", dest="devtype", default="ata", metavar="DEVTYPE",
-                        help="type of device (ATA|SCSI)")
+                        help="type of device (ata|scsi)")
         parser.add_option("-w", "--warning-threshold", metavar="TEMP", action="store",
                         type="int", dest="warningThreshold", default=55,
                         help="set temperature warning threshold to given temperature (defaults to 55)")
@@ -291,10 +291,10 @@ if __name__ == "__main__":
         vprint(2, "Get device type")
         devtype = options.devtype
         if not devtype:
-                devtype = "ATA"
-
-        if device_re.search( device ):
-                devtype = "scsi"
+                if device_re.search( device ):
+                        devtype = "scsi"
+                else:
+                        devtype = "ata"
 
         vprint(1, "Device type: %s" % devtype)
 
