avahi-daemon.init 267 B

1234567891011121314151617181920212223
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=61
  4. BIN=avahi-daemon
  5. DEFAULT=/etc/default/$BIN
  6. OPTIONS="-D"
  7. RUN_D=/var/run/$BIN
  8. start() {
  9. [ -f $DEFAULT ] && . $DEFAULT
  10. mkdir -p $RUN_D
  11. $BIN $OPTIONS
  12. }
  13. stop() {
  14. $BIN -k
  15. }
  16. reload() {
  17. $BIN -r
  18. }