From 3d054bf2cc5942ca6e15c8944b4d927d85903713 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 11 Nov 2005 22:05:26 +0000 Subject: make it compatible with 7020 again (should be removed in the final version) --- lib/python/Components/NimManager.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index f04d076d..53c6b62c 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -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() -- cgit v1.2.3