the class HardwareInfo is used to determine the dreambox model (taken
[vuplus_dvbapp] / lib / python / Tools / HardwareInfo.py
diff --git a/lib/python/Tools/HardwareInfo.py b/lib/python/Tools/HardwareInfo.py
new file mode 100644 (file)
index 0000000..38cccb5
--- /dev/null
@@ -0,0 +1,10 @@
+class HardwareInfo:
+       def __init__(self):
+               self.device = "unknown"
+               file = open("/proc/stb/info/model", "r")
+               self.device = file.readline().strip()
+               
+       def get_device_name(self):
+               return self.device
+       
+       device_name = property(get_device_name)
\ No newline at end of file