summaryrefslogtreecommitdiff
path: root/openwrt/package/avahi/files
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-08-24 02:02:57 +0000
committerNicolas Thill <nico@openwrt.org>2005-08-24 02:02:57 +0000
commitc15ba7e4fa0fa36948dd78a7800c59c90b663bbf (patch)
tree11cf89b0cde64a769195d764d32bb375bad7ea62 /openwrt/package/avahi/files
parentd3f34f32e25426438b4e519a5aad6f69b8037cb3 (diff)
downloadmtk-20170518-c15ba7e4fa0fa36948dd78a7800c59c90b663bbf.zip
mtk-20170518-c15ba7e4fa0fa36948dd78a7800c59c90b663bbf.tar.gz
mtk-20170518-c15ba7e4fa0fa36948dd78a7800c59c90b663bbf.tar.bz2
disable assertions, add an initscript and some config files
SVN-Revision: 1744
Diffstat (limited to 'openwrt/package/avahi/files')
-rw-r--r--openwrt/package/avahi/files/avahi-daemon.conf29
-rw-r--r--openwrt/package/avahi/files/avahi-daemon.init25
-rw-r--r--openwrt/package/avahi/files/service-http10
-rw-r--r--openwrt/package/avahi/files/service-ssh9
4 files changed, 73 insertions, 0 deletions
diff --git a/openwrt/package/avahi/files/avahi-daemon.conf b/openwrt/package/avahi/files/avahi-daemon.conf
new file mode 100644
index 0000000..a5ff886
--- /dev/null
+++ b/openwrt/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/openwrt/package/avahi/files/avahi-daemon.init b/openwrt/package/avahi/files/avahi-daemon.init
new file mode 100644
index 0000000..20f0a2e
--- /dev/null
+++ b/openwrt/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/openwrt/package/avahi/files/service-http b/openwrt/package/avahi/files/service-http
new file mode 100644
index 0000000..8e0d3a5
--- /dev/null
+++ b/openwrt/package/avahi/files/service-http
@@ -0,0 +1,10 @@
+<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
+<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
+<service-group>
+ <name replace-wildcards="yes">Web Server on %h</name>
+ <service>
+ <type>_http._tcp</type>
+ <port>80</port>
+ <txt-record>path=/index.html</txt-record>
+ </service>
+</service-group>
diff --git a/openwrt/package/avahi/files/service-ssh b/openwrt/package/avahi/files/service-ssh
new file mode 100644
index 0000000..b415803
--- /dev/null
+++ b/openwrt/package/avahi/files/service-ssh
@@ -0,0 +1,9 @@
+<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
+<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
+<service-group>
+ <name replace-wildcards="yes">Secure Shell on %h</name>
+ <service>
+ <type>_ssh._tcp</type>
+ <port>22</port>
+ </service>
+</service-group>