mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 20:29:42 +02:00
26 lines
288 B
Plaintext
26 lines
288 B
Plaintext
|
#!/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 $?
|