|
@@ -29,23 +29,21 @@ append_bool() {
|
29
|
29
|
|
30
|
30
|
start_instance() {
|
31
|
31
|
local cfg="$1"
|
|
32
|
+ local aux
|
32
|
33
|
|
33
|
|
- config_get_bool disabled "$cfg" 'disabled' '0'
|
34
|
|
- [ "$disabled" = 1 ] && return 1
|
|
34
|
+ config_get_bool aux "$cfg" 'disabled' '0'
|
|
35
|
+ [ "$aux" = 1 ] && return 1
|
35
|
36
|
|
36
|
37
|
procd_open_instance
|
37
|
38
|
|
38
|
39
|
procd_set_param command /usr/bin/dump1090
|
|
40
|
+ procd_append_param command "--quiet"
|
39
|
41
|
|
40
|
42
|
append_arg "$cfg" device_index "--device-index"
|
41
|
43
|
append_arg "$cfg" gain "--gain"
|
42
|
44
|
append_bool "$cfg" enable_agc "--enable-agc"
|
43
|
45
|
append_arg "$cfg" freq "--freq"
|
44
|
46
|
append_arg "$cfg" ifile "--ifile"
|
45
|
|
- append_bool "$cfg" interactive "--interactive"
|
46
|
|
- append_arg "$cfg" interactive_rows "--interactive-rows"
|
47
|
|
- append_arg "$cfg" interactive_ttl "--interactive-ttl"
|
48
|
|
- append_bool "$cfg" interactive_rtl1090 "--interactive-rtl1090"
|
49
|
47
|
append_bool "$cfg" raw "--raw"
|
50
|
48
|
append_bool "$cfg" net "--net"
|
51
|
49
|
append_bool "$cfg" modeac "--modeac"
|
|
@@ -75,9 +73,11 @@ start_instance() {
|
75
|
73
|
append_bool "$cfg" metric "--metric"
|
76
|
74
|
append_arg "$cfg" snip "--snip"
|
77
|
75
|
append_arg "$cfg" debug "--debug"
|
78
|
|
- append_bool "$cfg" quiet "--quiet"
|
79
|
76
|
append_arg "$cfg" ppm "--ppm"
|
80
|
77
|
|
|
78
|
+ config_get_bool aux "$cfg" 'respawn' '0'
|
|
79
|
+ [ "$aux" = 1 ] && procd_set_param respawn
|
|
80
|
+
|
81
|
81
|
procd_close_instance
|
82
|
82
|
}
|
83
|
83
|
|