simpler translation
[enigma2.git] / lib / python / Tools / HardwareInfo.py
1 class HardwareInfo:
2         def __init__(self):
3                 self.device = "unknown"
4                 try:
5                         file = open("/proc/stb/info/model", "r")
6                         self.device = file.readline().strip()
7                         file.close()
8                 except:
9                         print "----------------"
10                         print "you should upgrade to new drivers for the hardware detection to work properly"
11                         print "----------------"
12                 
13         def get_device_name(self):
14                 return self.device
15         
16         device_name = property(get_device_name)
17