[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Workaround MMC block devs showing up not as disks from hal (#481431)



---
 minihal.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/minihal.py b/minihal.py
index 6d4e6de..8ab93d4 100644
--- a/minihal.py
+++ b/minihal.py
@@ -53,6 +53,10 @@ def get_device(udi):
         pdev = get_device(props['net.originating_device'])
         props['description'] = pdev['description']
 
+    # mmc block devices don't show up as disks (#481431)
+    if props.has_key('storage.drive_type') and props['storage.drive_type'] == "sd_mmc":
+        props['storage.drive_type'] = "disk"
+
     return props
 
 def get_devices_by_type(type):
-- 
1.6.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]