From aa8980dc04e5126977984da8c31be03fb0d13689 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 27 May 2006 11:44:29 +0000 Subject: avahi 0.6.10: Only run the postinst on the target device (from poky) --- packages/avahi/avahi_0.6.10.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/avahi') 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 -- cgit 1.2.3-korg