From: David-John Willis Date: Fri, 15 Jan 2010 21:34:12 +0000 (+0000) Subject: gtk-touchscreen-mode-enable: Clean up recipe and add post_rm. X-Git-Tag: Release-2010-05/1~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36aa7a6a2c0c61e6e0c04712ed2821cf12a0efa;p=openpandora.oe.git gtk-touchscreen-mode-enable: Clean up recipe and add post_rm. --- diff --git a/recipes/gtk/gtk-touchscreen-mode-enable.bb b/recipes/gtk/gtk-touchscreen-mode-enable.bb index d865ad0..46607d2 100644 --- a/recipes/gtk/gtk-touchscreen-mode-enable.bb +++ b/recipes/gtk/gtk-touchscreen-mode-enable.bb @@ -9,8 +9,14 @@ PACKAGE_ARCH = "all" pkg_postinst() { #!/bin/sh -mkdir -p $D${sysconfdir}/gtk-2.0 -touch $D${sysconfdir}/gtk-2.0/gtkrc -sed -i /gtk-touchscreen-mode = 1/d $D${sysconfdir}/gtk-2.0/gtkrc -echo 'gtk-touchscreen-mode = 1' >> $D${sysconfdir}/gtk-2.0/gtkrc +mkdir -p ${sysconfdir}/gtk-2.0 +touch ${sysconfdir}/gtk-2.0/gtkrc +sed -i /gtk-touchscreen-mode = 1/d ${sysconfdir}/gtk-2.0/gtkrc +echo 'gtk-touchscreen-mode = 1' >> ${sysconfdir}/gtk-2.0/gtkrc } + +pkg_postrm() { +#!/bin/sh +sed -i /gtk-touchscreen-mode = 1/d ${sysconfdir}/gtk-2.0/gtkrc +} +