make it compatible with 7020 again (should be removed in the final version)
[enigma2.git] / lib / python / Components / NimManager.py
index f04d076d29d50ef87428e6a63d82adbb10a4810f..53c6b62c374e837c8274ee9dfcff3a0b0df7f50f 100644 (file)
@@ -132,7 +132,14 @@ class NimManager:
                nimfile = tryOpen("/proc/bus/nim_sockets")
 
                if nimfile == "":
-                       return self.nimType["empty/unknown"]
+                       # FIXME: remove this in the final version
+                       # check if we have a device for 7020 comp?atibility reasons
+                       try:
+                               open("/dev/dvb/card0/frontend" + str(slotID))
+                               return self.nimType["DVB-S"]
+                       except IOError:
+                               return self.nimType["empty/unknown"]
+
 
                while 1:                
                        line = nimfile.readline()