+ def GetCommand(nimIdx):
+ _nimSocket = {}
+ fp = file('/proc/bus/nim_sockets')
+
+ sNo, sName = -1, ""
+ for line in fp:
+ line = line.strip()
+ if line.startswith('NIM Socket'):
+ sNo = line.split()[2][:-1]
+ elif line.startswith('Name:'):
+ sName = line.split()[3][4:-1]
+ if sNo >= 0 and sName != "":
+ _nimSocket[sNo] = sName
+ sNo = -1
+ sName = ''
+ fp.close()
+
+ try:
+ sName = _nimSocket[str(nimIdx)]
+ sType = _supportNimType[sName]
+ return "vuplus_%(TYPE)sblindscan"%{'TYPE':sType}, None
+ except: pass
+ return "vuplus_blindscan", None
+ self.binName,nimName = GetCommand(self.scan_nims.value)
+ if self.binName is None:
+ self.session.open(MessageBox, "Blindscan is not supported in " + nimName + " tuner.", MessageBox.TYPE_ERROR)
+ print nimName + " is not support blindscan."
+ return
+