summaryrefslogtreecommitdiff
path: root/openwrt/package/avahi/files/avahi-daemon.init
blob: 20f0a2e064810ab95cf2e90f67bc49e295ca3771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 $?