aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/HardwareInfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Tools/HardwareInfo.py')
-rw-r--r--lib/python/Tools/HardwareInfo.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/Tools/HardwareInfo.py b/lib/python/Tools/HardwareInfo.py
new file mode 100644
index 00000000..38cccb57
--- /dev/null
+++ b/lib/python/Tools/HardwareInfo.py
@@ -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