summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-02-04 21:04:18 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-02-04 21:04:30 +0100
commit97e220ed3976363d47712193d18c401dec4c9f36 (patch)
treee097ff08ad8bb1d8e72f4e690a30464576916bc2 /tdecore
parent90ed3e409bd1ae6b93ad5e4722b556f3e647dff5 (diff)
downloadtdelibs-97e220ed3976363d47712193d18c401dec4c9f36.tar.gz
tdelibs-97e220ed3976363d47712193d18c401dec4c9f36.zip
Add a rule for classifying ATA Compact Flash Adapter
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 613eadbbc35a25f19c205c32eeeb0b890d468aa6)
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 2b980e7e1..8e794b4b5 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -1043,7 +1043,8 @@ TDEDiskDeviceType::TDEDiskDeviceType classifyDiskType(udev_device* dev, const TQ
}
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::HDD;
}