summaryrefslogtreecommitdiff
path: root/packages/avahi
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-05-27 11:44:29 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-27 11:44:29 +0000
commitaa8980dc04e5126977984da8c31be03fb0d13689 (patch)
tree2deee567b582caed85aae4aadadce11ba62341d3 /packages/avahi
parent1f00c0e2eda7416f552e6100a1098ebaa0410462 (diff)
avahi 0.6.10: Only run the postinst on the target device (from poky)
Diffstat (limited to 'packages/avahi')
-rw-r--r--packages/avahi/avahi_0.6.10.bb4
1 files changed, 4 insertions, 0 deletions
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