avahi 0.6.10: Only run the postinst on the target device (from poky)
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 27 May 2006 11:44:29 +0000 (11:44 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 27 May 2006 11:44:29 +0000 (11:44 +0000)
packages/avahi/avahi_0.6.10.bb

index 95c930d..2b12d91 100644 (file)
@@ -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