packages/libs/avahi/files/avahi-daemon.init
nico 68ad6b441a port avahi to buildroot-ng
git-svn-id: svn://svn.openwrt.org/openwrt/packages@4239 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-07-23 17:11:35 +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 $?