Support zero4k.
[vuplus_openvuplus_3.0] / meta-bsp / recipes-vuplus / enigma2 / enigma2 / enigma2_vuplus_zero4k_hdd_recording.patch
diff --git a/meta-bsp/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_zero4k_hdd_recording.patch b/meta-bsp/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_zero4k_hdd_recording.patch
new file mode 100644 (file)
index 0000000..f3f49e5
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py
+index c455e5f..f88b857 100755
+--- a/lib/python/Components/Harddisk.py
++++ b/lib/python/Components/Harddisk.py
+@@ -78,7 +78,8 @@ def isUsbStorage(filename):
+               phyPath = os.path.realpath('/sys/block/' + dev[:3])
+               for x in glob.glob("/sys/bus/usb/devices/usb*"):
+                       if phyPath.find(os.path.realpath(x)) != -1:
+-                              return True
++                              if phyPath.find("f0b00500.ehci_v2/usb2/2-1") == -1:
++                                      return True
+       return False