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>
18 lines
327 B
Bash
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!"
|
|
}
|