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.

21 lines
472 B

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