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
517 B

#!/bin/sh /etc/rc.common
# Copyright (C) 2013-2014 OpenWrt.org
START=99
STOP=99
USE_PROCD=1
PROG=/usr/bin/kismet_drone
NAME=kismet_drone
kismet_drone_instance() {
procd_open_instance
procd_set_param command "${PROG}"
procd_append_param command -f /etc/kismet/kismet_drone.conf -s
procd_set_param respawn
procd_close_instance
}
start_service() {
config_load "${NAME}"
config_foreach kismet_drone_instance
}
stop_service() {
service_stop "${PROG}"
}