packages/utils/airos-dfs-reset/files/airos-dfs-reset.init
Simon Polack e36e8a6a3b airos-dfs-reset: add airos-dfs-reset
Ubiquitis airmax based gear does not fallback to original port after DFS
event is over. This tool triggers the fallback automatically by soft-restarting
unconditionally, whenever the configured freq differs from the running.

Signed-off-by: Simon Polack <spolack+git@mailbox.org>
2021-08-23 11:40:33 +02:00

18 lines
327 B
Bash

#!/bin/sh /etc/rc.common
USE_PROCD=1
START=95
STOP=01
start_service() {
procd_open_instance
procd_set_param command /usr/bin/airos-dfs-reset
procd_set_param stdout 0
procd_set_param stderr 0
procd_set_param user nobody
procd_close_instance
}
service_stopped() {
echo "airos-dfs-reset stopped!"
}