Received: from ffm.saftware.de ([83.141.3.46]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SUhfL-0008HX-Mw for openembedded-core@lists.openembedded.org; Wed, 16 May 2012 19:05:35 +0200 From: Andreas Oberritter To: openembedded-core@lists.openembedded.org Date: Wed, 16 May 2012 18:55:31 +0200 Message-Id: <1337187331-4945-1-git-send-email-obi@opendreambox.org> X-Mailer: git-send-email 1.7.9.5 Subject: [PATCH] avahi-systemd: drop postrm, use prerm instead X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 17:05:35 -0000 * Calling "systemctl disable" from postrm is too late and causes the following error: | Failed to issue method call: No such file or directory * Fix indentation of prerm for resulting shell snippet. * Messing with $D is not needed in *rm scripts. Signed-off-by: Andreas Oberritter --- meta/recipes-connectivity/avahi/avahi.inc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc index 61ca25f..f84a81d 100644 --- a/meta/recipes-connectivity/avahi/avahi.inc +++ b/meta/recipes-connectivity/avahi/avahi.inc @@ -14,7 +14,7 @@ SECTION = "network" # python scripts are under GPLv2+ LICENSE = "GPLv2+ & LGPLv2.1+" -INC_PR = "r2" +INC_PR = "r3" DEPENDS = "expat libcap libdaemon dbus glib-2.0" @@ -163,12 +163,7 @@ pkg_postinst_avahi-systemd() { systemctl enable avahi-daemon.service } -pkg_postrm_avahi-systemd() { - # can't do this offline - if [ "x$D" != "x" ]; then - exit 1 - fi - - systemctl disable avahi-daemon.service +pkg_prerm_avahi-systemd() { +systemctl disable avahi-daemon.service } -- 1.7.9.5