You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
499 B

  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_service() {
  17. /usr/bin/wdctl status
  18. }