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

28 lines
451 B
Bash

#!/bin/sh /etc/rc.common
START=19
STOP=10
USE_PROCD=1
logger() {
command logger -t wifi-eventd "$@"
}
start_cron_job() {
(crontab -l ; echo "00 03 * * * /usr/sbin/update_wifi_client_list.sh cleanup") | sort -u | crontab -
}
stop_service() {
logger "stop"
}
start_service() {
logger "start"
procd_open_instance
procd_set_param command setsid /usr/sbin/wifi-eventd
procd_set_param respawn 3600 5 0
procd_close_instance
start_cron_job
}