detect presence of nc

This commit is contained in:
Jakob Ketterl 2019-06-05 00:08:56 +02:00
parent b7fc6a9c87
commit 546249e950
1 changed files with 4 additions and 1 deletions

View File

@ -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")