Add a rule for classifying ATA Compact Flash Adapter

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 613eadbbc3)
pull/16/head
Slávek Banko 9 years ago
parent 90ed3e409b
commit 97e220ed39

@ -1043,7 +1043,8 @@ TDEDiskDeviceType::TDEDiskDeviceType classifyDiskType(udev_device* dev, const TQ
} }
if ((disktypestring.upper() == "COMPACT_FLASH") if ((disktypestring.upper() == "COMPACT_FLASH")
|| (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLASH_CF")) == "1")) { || (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLASH_CF")) == "1")
|| (TQString(udev_device_get_property_value(dev, "ID_ATA_CFA")) == "1")) {
disktype = disktype | TDEDiskDeviceType::CompactFlash; disktype = disktype | TDEDiskDeviceType::CompactFlash;
disktype = disktype | TDEDiskDeviceType::HDD; disktype = disktype | TDEDiskDeviceType::HDD;
} }

Loading…
Cancel
Save