summaryrefslogtreecommitdiff
path: root/packages/avahi/avahi.inc
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2008-12-22 13:04:31 +0100
committerJeremy Lainé <jeremy.laine@m4x.org>2008-12-22 13:04:31 +0100
commit5ce040f0773afe2f0536cb84588a12e6f37d9274 (patch)
tree6cd0c60b96835fe8b81e034517b230a49e38631c /packages/avahi/avahi.inc
parentdca7dad0bd67fa1a6c060876d88edc54b2198623 (diff)
parentb877958ee6ee6b15b31548b821b6fba6efb6b4c3 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/avahi/avahi.inc')
-rw-r--r--packages/avahi/avahi.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/avahi/avahi.inc b/packages/avahi/avahi.inc
index 9a0685578c..cbd6ac3d03 100644
--- a/packages/avahi/avahi.inc
+++ b/packages/avahi/avahi.inc
@@ -76,10 +76,11 @@ pkg_postinst_avahi-daemon () {
grep "^avahi:" /etc/group > /dev/null || addgroup avahi
grep "^avahi:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/run/avahi-daemon --no-create-home avahi --ingroup avahi -g Avahi
- DBUSPID=`pidof dbus-daemon`
-
- if [ "x$DBUSPID" != "x" ]; then
- /etc/init.d/dbus-1 force-reload
+ DBUSPID="/var/run/dbus/pid"
+ if [ -f $DBUSPID ]; then
+ if ps `cat $DBUSPID` > /dev/null; then
+ /etc/init.d/dbus-1 force-reload
+ fi
fi
}