From 546249e95069c2444dd5809c02c1ae6f4214911c Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 5 Jun 2019 00:08:56 +0200 Subject: [PATCH] detect presence of nc --- owrx/feature.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/owrx/feature.py b/owrx/feature.py index e119ffa..75ef97d 100644 --- a/owrx/feature.py +++ b/owrx/feature.py @@ -12,7 +12,7 @@ class UnknownFeatureException(Exception): class FeatureDetector(object): features = { - "core": [ "csdr", "nmux" ], + "core": [ "csdr", "nmux", "nc" ], "rtl_sdr": [ "rtl_sdr" ], "sdrplay": [ "rx_tools" ], "hackrf": [ "hackrf_transfer" ], @@ -51,6 +51,9 @@ class FeatureDetector(object): def has_nmux(self): return self.command_is_runnable("nmux --help") + def has_nc(self): + return self.command_is_runnable('nc --help') + def has_rtl_sdr(self): return self.command_is_runnable("rtl_sdr --help")