From 89cd5ceb75dd5b59ff58a549402541a983d42ccd Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 3 Jul 2008 13:02:41 +0000 Subject: the class HardwareInfo is used to determine the dreambox model (taken from /proc/stb/info/model) (needs new driver info.ko) --- lib/python/Tools/HardwareInfo.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/python/Tools/HardwareInfo.py (limited to 'lib/python/Tools/HardwareInfo.py') 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 -- cgit v1.2.3