[dvbapp] use e2label to automount storage devices.
authorhschang <chang@dev3>
Mon, 20 Nov 2017 07:40:29 +0000 (16:40 +0900)
committerhschang <chang@dev3>
Mon, 20 Nov 2017 08:34:10 +0000 (17:34 +0900)
meta-openvuplus/recipes-core/udev/udev-182/automount.py
meta-openvuplus/recipes-core/udev/udev_182.bbappend
meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb
meta-openvuplus/recipes-vuplus/packagegroups/packagegroup-vuplus-base.bb

index 22f81e2..05848d2 100755 (executable)
@@ -7,11 +7,15 @@ def readFile(fn):
        return open(fn, "r").read()
 
 def getLabelFromDevName(dev_kernel):
-       for label in glob.glob("/dev/disk/by-label/*"):
-               realPath = os.path.realpath(label)
-               if realPath == dev_kernel:
-                       return os.path.basename(label)
-       return None
+       data = None
+       try:
+               data = os.popen("e2label %s" % dev_kernel).read().strip()
+               if not data: 
+                       data = None
+       except:
+               data = None
+
+       return data
 
 def getModel(dev_base):
        model = None
index f6a4d97..d2b4fa3 100644 (file)
@@ -1,4 +1,4 @@
-PR .= "-vuplus4"
+PR .= "-vuplus5"
 
 SRC_URI += " \
        file://99_vuplus.rules \
index 672adfa..5cdf510 100644 (file)
@@ -232,7 +232,7 @@ DEPENDS += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libgles libvugle
 RDEPENDS_${PN}_append_vuplus += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libvugles2" , "", d)}"
 
 PN = "enigma2"
-PR = "r168"
+PR = "r169"
 
 inherit gitpkgv pythonnative
 
index 240d21c..90f7e00 100644 (file)
@@ -2,7 +2,7 @@ SUMMARY = "Vuplus: Base set of packages for Vuplus."
 SECTION = "vuplus/base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-PR = "r6"
+PR = "r7"
 
 inherit packagegroup
 
@@ -12,6 +12,7 @@ VUPLUS_BASE_ESSENTIAL = "\
     vuplus-compat \
     e2fsprogs-e2fsck \
     e2fsprogs-mke2fs \
+    e2fsprogs-tune2fs \
     fakelocale \
     opkg \
     tzdata \