diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2008-03-25 21:41:31 +0000 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2008-03-25 21:41:31 +0000 |
| commit | 77c42c1c1069a5b6526fa515512825b15de77b79 (patch) | |
| tree | f3dfce44a40c469aadecb8aa2c6fdc53e342526c /lib/python | |
| parent | b5d9487a6484ea671921cf62035ac538cbd6cc48 (diff) | |
| download | enigma2-77c42c1c1069a5b6526fa515512825b15de77b79.tar.gz enigma2-77c42c1c1069a5b6526fa515512825b15de77b79.zip | |
create empty 'nim_slots' even if /proc/bus/nim_sockets is not available
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/NimManager.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index ec7d46fe..bfe8f36b 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -597,6 +597,9 @@ class NimManager: # # Type will be either "DVB-S", "DVB-S2", "DVB-T", "DVB-C" or None. + # nim_slots is an array which has exactly one entry for each slot, even for empty ones. + self.nim_slots = [ ] + nimfile = tryOpen("/proc/bus/nim_sockets") if nimfile is None: @@ -621,9 +624,6 @@ class NimManager: entries[current_slot]["name"] = _("N/A") nimfile.close() - # nim_slots is an array which has exactly one entry for each slot, even for empty ones. - self.nim_slots = [ ] - for id, entry in entries.items(): if not (entry.has_key("name") and entry.has_key("type")): entry["name"] = _("N/A") |
