git.cweiske.de
/
enigma2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
the class HardwareInfo is used to determine the dreambox model (taken
[enigma2.git]
/
lib
/
python
/
Tools
/
HardwareInfo.py
1
class HardwareInfo:
2
def __init__(self):
3
self.device = "unknown"
4
file = open("/proc/stb/info/model", "r")
5
self.device = file.readline().strip()
6
7
def get_device_name(self):
8
return self.device
9
10
device_name = property(get_device_name)