X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/89cd5ceb75dd5b59ff58a549402541a983d42ccd..f06af856d2a0210bf7931f800ecb7ad13fbf659a:/lib/python/Tools/HardwareInfo.py diff --git a/lib/python/Tools/HardwareInfo.py b/lib/python/Tools/HardwareInfo.py index 38cccb57..f426d180 100644 --- a/lib/python/Tools/HardwareInfo.py +++ b/lib/python/Tools/HardwareInfo.py @@ -1,10 +1,17 @@ class HardwareInfo: def __init__(self): self.device = "unknown" - file = open("/proc/stb/info/model", "r") - self.device = file.readline().strip() + try: + file = open("/proc/stb/info/model", "r") + self.device = file.readline().strip() + file.close() + except: + print "----------------" + print "you should upgrade to new drivers for the hardware detection to work properly" + print "----------------" def get_device_name(self): return self.device - device_name = property(get_device_name) \ No newline at end of file + device_name = property(get_device_name) +