1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-31 00:01:10 +02:00
openwrt-xburst/openwrt/package/avahi/files/avahi-daemon.init
nico 01e95ed6aa disable assertions, add an initscript and some config files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1744 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-08-24 02:02:57 +00:00

26 lines
288 B
Bash

#!/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 $?