kismet_drone.init 517 B

1234567891011121314151617181920212223242526
  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_drone
  7. NAME=kismet_drone
  8. kismet_drone_instance() {
  9. procd_open_instance
  10. procd_set_param command "${PROG}"
  11. procd_append_param command -f /etc/kismet/kismet_drone.conf -s
  12. procd_set_param respawn
  13. procd_close_instance
  14. }
  15. start_service() {
  16. config_load "${NAME}"
  17. config_foreach kismet_drone_instance
  18. }
  19. stop_service() {
  20. service_stop "${PROG}"
  21. }