aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-01 20:20:55 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-01 20:20:55 +0000
commitd61aab3dbb4a66e74d008eab24c5be5d5b937adc (patch)
tree064df9b9ecff4eb442ef8ab86aef17112dddbbeb /lib/python/Tools
parent2257bf78a5ea5aba595fb59dc6f4af409e179146 (diff)
downloadenigma2-d61aab3dbb4a66e74d008eab24c5be5d5b937adc.tar.gz
enigma2-d61aab3dbb4a66e74d008eab24c5be5d5b937adc.zip
fix fallback
Diffstat (limited to 'lib/python/Tools')
-rw-r--r--lib/python/Tools/HardwareInfo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Tools/HardwareInfo.py b/lib/python/Tools/HardwareInfo.py
index f5c45345..9fb17dac 100644
--- 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()
- if rd.find("Brcm4380 V4.2") != 0:
+ if rd.find("Brcm4380 V4.2") != -1:
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!"
- elif rd.find("MIPS 4KEc V4.8") != 0:
+ elif rd.find("MIPS 4KEc V4.8") != -1:
self.device = "dm7025"
print "dm7025 detected!"
except: