|
|
@ -1,5 +1,5 @@ |
|
|
|
#!/bin/sh /etc/rc.common |
|
|
|
# Copyright (C) 2014-2015 OpenWrt.org |
|
|
|
# Copyright (C) 2014-2016 OpenWrt.org |
|
|
|
|
|
|
|
START=90 |
|
|
|
STOP=10 |
|
|
@ -51,7 +51,6 @@ start_instance() { |
|
|
|
append_bool "$cfg" modeac "--modeac" |
|
|
|
append_bool "$cfg" net_only "--net-only" |
|
|
|
append_arg "$cfg" net_bind_address "--net-bind-address" |
|
|
|
append_arg "$cfg" net_http_port "--net-http-port" |
|
|
|
append_arg "$cfg" net_ri_port "--net-ri-port" |
|
|
|
append_arg "$cfg" net_ro_port "--net-ro-port" |
|
|
|
append_arg "$cfg" net_sbs_port "--net-sbs-port" |
|
|
@ -76,13 +75,15 @@ start_instance() { |
|
|
|
append_arg "$cfg" stats_every "--stats-every" |
|
|
|
append_bool "$cfg" onlyaddr "--onlyaddr" |
|
|
|
append_bool "$cfg" metric "--metric" |
|
|
|
append_bool "$cfg" hae "--hae" |
|
|
|
append_bool "$cfg" gnss "--gnss" |
|
|
|
append_arg "$cfg" snip "--snip" |
|
|
|
append_arg "$cfg" debug "--debug" |
|
|
|
append_arg "$cfg" ppm "--ppm" |
|
|
|
append_arg "$cfg" html_dir "--html-dir" |
|
|
|
append_arg "$cfg" write_json "--write-json" |
|
|
|
append_arg "$cfg" write_json_every "write-json-every" |
|
|
|
config_get aux "$cfg" "write_json" |
|
|
|
[ -n "$aux" ] && mkdir -p $aux |
|
|
|
append_arg "$cfg" write_json_every "--write-json-every" |
|
|
|
append_arg "$cfg" json_location_accuracy "--json-location-accuracy" |
|
|
|
append_bool "$cfg" oversample "--oversample" |
|
|
|
append_bool "$cfg" dcfilter "--dcfilter" |
|
|
@ -94,9 +95,9 @@ start_instance() { |
|
|
|
procd_close_instance |
|
|
|
} |
|
|
|
|
|
|
|
service_triggers() { |
|
|
|
procd_add_reload_trigger "dump1090" |
|
|
|
} |
|
|
|
service_triggers() { |
|
|
|
procd_add_reload_trigger "dump1090" |
|
|
|
} |
|
|
|
|
|
|
|
start_service() { |
|
|
|
config_load dump1090 |
|
|
|