From ae1cc04e435e3fff9ec36cfbea28a8d4e6b21e03 Mon Sep 17 00:00:00 2001 From: nico Date: Wed, 24 Aug 2005 02:02:57 +0000 Subject: disable assertions, add an initscript and some config files git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1744 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/avahi/files/avahi-daemon.conf | 29 +++++++++++++++++++++++++++++ package/avahi/files/avahi-daemon.init | 25 +++++++++++++++++++++++++ package/avahi/files/service-http | 10 ++++++++++ package/avahi/files/service-ssh | 9 +++++++++ 4 files changed, 73 insertions(+) create mode 100644 package/avahi/files/avahi-daemon.conf create mode 100644 package/avahi/files/avahi-daemon.init create mode 100644 package/avahi/files/service-http create mode 100644 package/avahi/files/service-ssh (limited to 'package/avahi/files') diff --git a/package/avahi/files/avahi-daemon.conf b/package/avahi/files/avahi-daemon.conf new file mode 100644 index 000000000..a5ff88619 --- /dev/null +++ b/package/avahi/files/avahi-daemon.conf @@ -0,0 +1,29 @@ +[server] +#host-name=foo +#domain-name=local +use-ipv4=yes +use-ipv6=no +check-response-ttl=no +use-iff-running=no +enable-dbus=no + +[publish] +publish-addresses=yes +publish-hinfo=yes +publish-workstation=no +publish-domain=yes +#publish-dns-servers=192.168.1.1 +#publish-resolv-conf-dns-servers=yes + +[reflector] +enable-reflector=no +reflect-ipv=no + +[rlimits] +#rlimit-as= +rlimit-core=0 +rlimit-data=4194304 +rlimit-fsize=0 +rlimit-nofile=30 +rlimit-stack=4194304 +rlimit-nproc=1 diff --git a/package/avahi/files/avahi-daemon.init b/package/avahi/files/avahi-daemon.init new file mode 100644 index 000000000..20f0a2e06 --- /dev/null +++ b/package/avahi/files/avahi-daemon.init @@ -0,0 +1,25 @@ +#!/bin/sh + +BIN=avahi-daemon +DEFAULT=/etc/default/$BIN +OPTIONS="-D" +RUN_D=/var/run/$BIN +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + mkdir -p $RUN_D + $BIN $OPTIONS + ;; + stop) + $BIN -k + ;; + reload) + $BIN -r + ;; + *) + echo "usage: $0 (start|stop|reload)" + exit 1 +esac + +exit $? diff --git a/package/avahi/files/service-http b/package/avahi/files/service-http new file mode 100644 index 000000000..8e0d3a513 --- /dev/null +++ b/package/avahi/files/service-http @@ -0,0 +1,10 @@ + + + + Web Server on %h + + _http._tcp + 80 + path=/index.html + + diff --git a/package/avahi/files/service-ssh b/package/avahi/files/service-ssh new file mode 100644 index 000000000..b41580378 --- /dev/null +++ b/package/avahi/files/service-ssh @@ -0,0 +1,9 @@ + + + + Secure Shell on %h + + _ssh._tcp + 22 + + -- cgit v1.2.3