[package] update avahi to included D-Bus support, libavahi-client library and avahi...
[openwrt/svn-archive/archive.git] / libs / avahi / files / avahi-daemon.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=61
4
5 BIN=avahi-daemon
6 DEFAULT=/etc/default/$BIN
7 OPTIONS="-D"
8 RUN_D=/var/run/$BIN
9
10 start() {
11 [ -f $DEFAULT ] && . $DEFAULT
12 mkdir -p $RUN_D
13 $BIN $OPTIONS
14 }
15
16 stop() {
17 $BIN -k
18 }
19
20 reload() {
21 $BIN -r
22 }
23