aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-27 01:37:40 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-27 01:37:40 -0600
commita3ffce8ab05d830dba2b9d36da60178c1789fa65 (patch)
treeebe07bc76a4ca9c4225b6b658697897dd6d9819a /config
parentddbbcd4154d334fc15eab74d75100c939be6abe3 (diff)
downloadpfsense-packages-a3ffce8ab05d830dba2b9d36da60178c1789fa65.tar.gz
pfsense-packages-a3ffce8ab05d830dba2b9d36da60178c1789fa65.tar.bz2
pfsense-packages-a3ffce8ab05d830dba2b9d36da60178c1789fa65.zip
Avahi - Create dbus directory if it doesn't exist and set perms. Fixes #3972
Diffstat (limited to 'config')
-rw-r--r--config/avahi/avahi.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/avahi/avahi.inc b/config/avahi/avahi.inc
index 4e5abea7..554a647c 100644
--- a/config/avahi/avahi.inc
+++ b/config/avahi/avahi.inc
@@ -159,6 +159,10 @@ EOF;
$start .= "if [ ! -f /usr/local/etc/gnome.subr ]; then\n";
$start .= " ln -sf " . AVAHI_BASE . "/etc/gnome.subr /usr/local/etc/gnome.subr\n";
$start .= "fi\n";
+ $start .= "if [ ! -d /var/run/dbus ]; then\n";
+ $start .= " mkdir /var/run/dbus\n";
+ $start .= " chown messagebus:messagebus /var/run/dbus\n";
+ $start .= "fi\n";
$start .= "/usr/bin/killall avahi-daemon >/dev/null 2>&1\n";
if (file_exists(AVAHI_BASE . "/etc/rc.d/dbus")) {
$start .= AVAHI_BASE . "/etc/rc.d/dbus onestop\n";