[OE-core] [PATCH] avahi-systemd: drop postrm, use prerm instead
Andreas Oberritter
obi at opendreambox.org
Wed May 16 16:55:31 UTC 2012
* 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 <obi at opendreambox.org>
---
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
More information about the Openembedded-core
mailing list