fsodeviced: add short preinst work-arround
authorMartin Jansa <Martin.Jansa@gmail.com>
Mon, 26 Apr 2010 17:32:46 +0000 (19:32 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Mon, 26 Apr 2010 17:38:55 +0000 (19:38 +0200)
* for opkg complaining that it cannot replace alsa-default dir (leftover from older fsodeviced) with new alsa-default symlink

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/freesmartphone/fsodeviced_git.bb

index 90eb91c..1e1f73e 100644 (file)
@@ -9,7 +9,7 @@ RPROVIDES_${PN} = "openmoko-alsa-scenarios virtual/alsa-scenarios"
 SRCREV = "${FSO_CORNUCOPIA_SRCREV}"
 PV = "0.9.0+gitr${SRCPV}"
 PE = "2"
-PR = "${INC_PR}.10"
+PR = "${INC_PR}.11"
 
 EXTRA_OECONF = "\
   --enable-kernel26-rfkill \
@@ -27,3 +27,8 @@ do_install_append() {
        install -d ${D}${sysconfdir}/init.d/
        install -m 0755 ${WORKDIR}/fsodeviced ${D}${sysconfdir}/init.d/
 }
+
+pkg_preinst_${PN} () {
+       # work-arround for opkg complaining that it cannot replace alsa-default dir (leftover from older fsodeviced) with new alsa-default symlink
+        rm -rf ${sysconfdir}/freesmartphone/conf/openmoko_gta/alsa-default/
+}