detect presence of nc
This commit is contained in:
parent
b7fc6a9c87
commit
546249e950
@ -12,7 +12,7 @@ class UnknownFeatureException(Exception):
|
|||||||
|
|
||||||
class FeatureDetector(object):
|
class FeatureDetector(object):
|
||||||
features = {
|
features = {
|
||||||
"core": [ "csdr", "nmux" ],
|
"core": [ "csdr", "nmux", "nc" ],
|
||||||
"rtl_sdr": [ "rtl_sdr" ],
|
"rtl_sdr": [ "rtl_sdr" ],
|
||||||
"sdrplay": [ "rx_tools" ],
|
"sdrplay": [ "rx_tools" ],
|
||||||
"hackrf": [ "hackrf_transfer" ],
|
"hackrf": [ "hackrf_transfer" ],
|
||||||
@ -51,6 +51,9 @@ class FeatureDetector(object):
|
|||||||
def has_nmux(self):
|
def has_nmux(self):
|
||||||
return self.command_is_runnable("nmux --help")
|
return self.command_is_runnable("nmux --help")
|
||||||
|
|
||||||
|
def has_nc(self):
|
||||||
|
return self.command_is_runnable('nc --help')
|
||||||
|
|
||||||
def has_rtl_sdr(self):
|
def has_rtl_sdr(self):
|
||||||
return self.command_is_runnable("rtl_sdr --help")
|
return self.command_is_runnable("rtl_sdr --help")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user