wifidog.init 491 B

12345678910111213141516171819202122
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=65
  4. USE_PROCD=1
  5. EXTRA_COMMANDS="status"
  6. EXTRA_HELP=" status Print the status of the service"
  7. start_service() {
  8. procd_open_instance
  9. # -s: log to syslog
  10. # -f: run in foreground
  11. procd_set_param command /usr/bin/wifidog -s -f
  12. procd_set_param respawn # respawn automatically if something died
  13. procd_set_param file /etc/wifidog.conf
  14. procd_close_instance
  15. }
  16. status() {
  17. /usr/bin/wdctl status
  18. }