git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.opendreambox.org:/git/enigma2
[enigma2.git]
/
lib
/
python
/
Tools
/
HardwareInfo.py
diff --git
a/lib/python/Tools/HardwareInfo.py
b/lib/python/Tools/HardwareInfo.py
index f5c45345a26ca2b7f820904e96709f703154eb94..9fb17dacca233e12abbdcf05cc2b6bd99a6202a3 100644
(file)
--- a/
lib/python/Tools/HardwareInfo.py
+++ b/
lib/python/Tools/HardwareInfo.py
@@
-12,13
+12,13
@@
class HardwareInfo:
print "fallback to detect hardware via /proc/cpuinfo!!"
try:
rd = open("/proc/cpuinfo", "r").read()
print "fallback to detect hardware via /proc/cpuinfo!!"
try:
rd = open("/proc/cpuinfo", "r").read()
- if rd.find("Brcm4380 V4.2") !=
0
:
+ if rd.find("Brcm4380 V4.2") !=
-1
:
self.device = "dm8000"
print "dm8000 detected!"
self.device = "dm8000"
print "dm8000 detected!"
- elif rd.find("Brcm7401 V0.0") !=
0
:
+ elif rd.find("Brcm7401 V0.0") !=
-1
:
self.device = "dm800"
print "dm800 detected!"
self.device = "dm800"
print "dm800 detected!"
- elif rd.find("MIPS 4KEc V4.8") !=
0
:
+ elif rd.find("MIPS 4KEc V4.8") !=
-1
:
self.device = "dm7025"
print "dm7025 detected!"
except:
self.device = "dm7025"
print "dm7025 detected!"
except: