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.

26 lines
515 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2013-2014 OpenWrt.org
  3. START=99
  4. STOP=99
  5. USE_PROCD=1
  6. PROG=/usr/bin/kismet_server
  7. NAME=kismet_server
  8. kismet_server_instance() {
  9. procd_open_instance
  10. procd_set_param command "${PROG}"
  11. procd_append_param command -f /etc/kismet/kismet.conf -s
  12. procd_set_param respawn
  13. procd_close_instance
  14. }
  15. start_service() {
  16. config_load "${NAME}"
  17. config_foreach kismet_server_instance
  18. }
  19. stop_service() {
  20. service_stop "${PROG}"
  21. }