From: Richard Purdie Date: Sat, 27 May 2006 11:44:29 +0000 (+0000) Subject: avahi 0.6.10: Only run the postinst on the target device (from poky) X-Git-Tag: Release-2010-05/1~9453^2~1595 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8980dc04e5126977984da8c31be03fb0d13689;p=openembedded.git avahi 0.6.10: Only run the postinst on the target device (from poky) --- diff --git a/packages/avahi/avahi_0.6.10.bb b/packages/avahi/avahi_0.6.10.bb index 95c930d8e8..2b12d91c8d 100644 --- a/packages/avahi/avahi_0.6.10.bb +++ b/packages/avahi/avahi_0.6.10.bb @@ -43,6 +43,10 @@ INITSCRIPT_NAME_avahi-dnsconfd = "avahi-dnsconfd" INITSCRIPT_PARAMS_avahi-dnsconfd = "defaults 22 19" pkg_postinst_avahi-daemon () { + if [ "x$D" != "x" ]; then + exit 1 + fi + grep avahi /etc/group || addgroup avahi grep avahi /etc/passwd || adduser --disabled-password --system --home /var/run/avahi-daemon --no-create-home avahi --ingroup avahi -g Avahi /etc/init.d/dbus-1 force-reload