3 self.device = "unknown"
5 file = open("/proc/stb/info/model", "r")
6 self.device = file.readline().strip()
9 print "----------------"
10 print "you should upgrade to new drivers for the hardware detection to work properly"
11 print "----------------"
12 print "fallback to detect hardware via /proc/cpuinfo!!"
14 rd = open("/proc/cpuinfo", "r").read()
15 if rd.find("Brcm4380 V4.2") != -1:
16 self.device = "dm8000"
17 print "dm8000 detected!"
18 elif rd.find("Brcm7401 V0.0") != -1:
20 print "dm800 detected!"
21 elif rd.find("MIPS 4KEc V4.8") != -1:
22 self.device = "dm7025"
23 print "dm7025 detected!"
27 def get_device_name(self):
30 device_name = property(get_device_name)