diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-08-24 02:02:57 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-08-24 02:02:57 +0000 |
commit | aa2fd8733a7757bb82f18bedfe769253e3d74552 (patch) | |
tree | 1d2ad467f36d9bd0830668927fa66529d7b53576 /package/avahi/files/avahi-daemon.init | |
parent | f481279bd492aafa7a4aba4d7e6c9d53d8595b04 (diff) | |
download | upstream-aa2fd8733a7757bb82f18bedfe769253e3d74552.tar.gz upstream-aa2fd8733a7757bb82f18bedfe769253e3d74552.tar.bz2 upstream-aa2fd8733a7757bb82f18bedfe769253e3d74552.zip |
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
Diffstat (limited to 'package/avahi/files/avahi-daemon.init')
-rw-r--r-- | package/avahi/files/avahi-daemon.init | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/avahi/files/avahi-daemon.init b/package/avahi/files/avahi-daemon.init new file mode 100644 index 0000000000..20f0a2e064 --- /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 $? |