summaryrefslogtreecommitdiffstats
path: root/openwrt/package/avahi/files/avahi-daemon.init
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-24 02:02:57 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-24 02:02:57 +0000
commit01e95ed6aaf44653546d32360b6a52eda3f46e05 (patch)
tree11cf89b0cde64a769195d764d32bb375bad7ea62 /openwrt/package/avahi/files/avahi-daemon.init
parent1bd05f06b6f5e491094432a99731a03af0609c0e (diff)
disable assertions, add an initscript and some config files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1744 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/avahi/files/avahi-daemon.init')
-rw-r--r--openwrt/package/avahi/files/avahi-daemon.init25
1 files changed, 25 insertions, 0 deletions
diff --git a/openwrt/package/avahi/files/avahi-daemon.init b/openwrt/package/avahi/files/avahi-daemon.init
new file mode 100644
index 000000000..20f0a2e06
--- /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 $?