Skip to content

Commit

Permalink
added blindscan for lunix4k
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Jul 21, 2020
1 parent 3fbf8e0 commit 0fa54a3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions blindscan/src/plugin.py
Expand Up @@ -92,6 +92,16 @@ def getMisPlsValue(d, idx, defaultValue):
BOX_MODEL = "gigablue"
except:
pass
elif fileExists("/proc/stb/info/hwmodel"):
try:
l = open("/proc/stb/info/hwmodel")
model = l.read().strip()
l.close()
BOX_NAME = str(model.lower())
if BOX_NAME.startswith("lunix4k"):
BOX_MODEL = "qviart"
except:
pass

#used for blindscan-s2
def getAdapterFrontend(frontend, description):
Expand Down Expand Up @@ -989,6 +999,13 @@ def prepareScanData(self, orb, pol, band, is_scan):
else:
self.session.open(MessageBox, _("Not found blind scan utility '%s'!") % tools, MessageBox.TYPE_ERROR)
return
elif BOX_NAME == "lunix4k":
tools = "/usr/bin/qviart_blindscan_72604"
if os.path.exists(tools):
cmd = "qviart_blindscan_72604 %d %d %d %d %d %d %d %d %d %d" % (temp_start_int_freq, temp_end_int_freq, self.blindscan_start_symbol.value, self.blindscan_stop_symbol.value, tab_pol[pol], tab_hilow[band], self.feid, self.getNimSocket(self.feid), self.is_c_band_scan, orb[0])
else:
self.session.open(MessageBox, _("Not found blind scan utility '%s'!") % tools, MessageBox.TYPE_ERROR)
return
elif BOX_NAME == "sf8008":
#self.frontend and self.frontend.closeFrontend()
tools = "/usr/bin/octagon-blindscan"
Expand Down

0 comments on commit 0fa54a3

Please sign in to comment.