Added support for nmux
This commit is contained in:
parent
1d19b07833
commit
cabb3adb3b
@ -144,11 +144,14 @@ def main():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
#Start rtl thread
|
#Start rtl thread
|
||||||
if os.system("ncat --version > /dev/null") == 32512: #check for ncat
|
if os.system("csdr 2> /dev/null") == 32512: #check for csdr
|
||||||
print "[openwebrx-main] Error: ncat not detected, please install it! The ncat tool is a netcat alternative, used for distributing the I/Q data stream. It is usually available in the nmap package (sudo apt-get install nmap). For more explanation, look into the README.md"
|
print "[openwebrx-main] You need to install \"csdr\" to run OpenWebRX!\n"
|
||||||
|
return
|
||||||
|
if os.system("nmux --help 2> /dev/null") == 32512: #check for nmux
|
||||||
|
print "[openwebrx-main] You need to install an up-to-date version of \"csdr\" that contains the \"nmux\" tool to run OpenWebRX! Please upgrade \"csdr\"!\n"
|
||||||
return
|
return
|
||||||
if cfg.start_rtl_thread:
|
if cfg.start_rtl_thread:
|
||||||
cfg.start_rtl_command += "| ncat -4l %d -k --send-only --allow 127.0.0.1" % cfg.iq_server_port
|
cfg.start_rtl_command += "| nmux -p %d -a 127.0.0.1" % cfg.iq_server_port
|
||||||
rtl_thread=threading.Thread(target = lambda:subprocess.Popen(cfg.start_rtl_command, shell=True), args=())
|
rtl_thread=threading.Thread(target = lambda:subprocess.Popen(cfg.start_rtl_command, shell=True), args=())
|
||||||
rtl_thread.start()
|
rtl_thread.start()
|
||||||
print "[openwebrx-main] Started rtl_thread: "+cfg.start_rtl_command
|
print "[openwebrx-main] Started rtl_thread: "+cfg.start_rtl_command
|
||||||
|
Loading…
Reference in New Issue
Block a user