mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-27 05:28:22 +01:00
Added config file for avahi-daemon
Without this config file, avahi-daemon would not startup because of "Failed to create server: No suitable network protocol available" error, which is fixed by following configuration setting in /etc/avahi/avahi-daemon.conf: disallow-other-stacks=yes
This commit is contained in:
parent
6f0fb62383
commit
63a3484230
68
recipes-connectivity/avahi/avahi/avahi-daemon.conf
Normal file
68
recipes-connectivity/avahi/avahi/avahi-daemon.conf
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# This file is part of avahi.
|
||||||
|
#
|
||||||
|
# avahi is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU Lesser General Public License as
|
||||||
|
# published by the Free Software Foundation; either version 2 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# avahi is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||||
|
# License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with avahi; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
# USA.
|
||||||
|
|
||||||
|
# See avahi-daemon.conf(5) for more information on this configuration
|
||||||
|
# file!
|
||||||
|
|
||||||
|
[server]
|
||||||
|
#host-name=foo
|
||||||
|
#domain-name=local
|
||||||
|
browse-domains=0pointer.de, zeroconf.org
|
||||||
|
use-ipv4=yes
|
||||||
|
use-ipv6=no
|
||||||
|
#allow-interfaces=eth0
|
||||||
|
#deny-interfaces=eth1
|
||||||
|
#check-response-ttl=no
|
||||||
|
#use-iff-running=no
|
||||||
|
#enable-dbus=yes
|
||||||
|
disallow-other-stacks=yes
|
||||||
|
#allow-point-to-point=no
|
||||||
|
#cache-entries-max=4096
|
||||||
|
#clients-max=4096
|
||||||
|
#objects-per-client-max=1024
|
||||||
|
#entries-per-entry-group-max=32
|
||||||
|
ratelimit-interval-usec=1000000
|
||||||
|
ratelimit-burst=1000
|
||||||
|
|
||||||
|
[wide-area]
|
||||||
|
enable-wide-area=yes
|
||||||
|
|
||||||
|
[publish]
|
||||||
|
#disable-publishing=no
|
||||||
|
#disable-user-service-publishing=no
|
||||||
|
#add-service-cookie=no
|
||||||
|
#publish-addresses=yes
|
||||||
|
#publish-hinfo=yes
|
||||||
|
#publish-workstation=yes
|
||||||
|
#publish-domain=yes
|
||||||
|
#publish-dns-servers=192.168.50.1, 192.168.50.2
|
||||||
|
#publish-resolv-conf-dns-servers=yes
|
||||||
|
#publish-aaaa-on-ipv4=yes
|
||||||
|
#publish-a-on-ipv6=no
|
||||||
|
|
||||||
|
[reflector]
|
||||||
|
#enable-reflector=no
|
||||||
|
#reflect-ipv=no
|
||||||
|
|
||||||
|
[rlimits]
|
||||||
|
#rlimit-as=
|
||||||
|
rlimit-core=0
|
||||||
|
rlimit-data=4194304
|
||||||
|
rlimit-fsize=0
|
||||||
|
rlimit-nofile=768
|
||||||
|
rlimit-stack=4194304
|
||||||
|
rlimit-nproc=3
|
10
recipes-connectivity/avahi/avahi_0.6.31.bbappend
Normal file
10
recipes-connectivity/avahi/avahi_0.6.31.bbappend
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# prepend this dir to path, to find conf file
|
||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
|
SRC_URI += "file://avahi-daemon.conf"
|
||||||
|
|
||||||
|
do_install_append () {
|
||||||
|
install -m 0644 ${WORKDIR}/avahi-daemon.conf ${D}${sysconfdir}/avahi/avahi-daemon.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
INC := "${@int(PRINC) + 2}"
|
Loading…
Reference in New Issue
Block a user