from Components.MenuList import MenuList
from Components.About import about
+from Tools.DreamboxHardware import getFPVersion
+
class About(Screen):
def __init__(self, session):
Screen.__init__(self, session)
self["text"] = Label("Enigma v" + about.getVersionString())
self["tuner"] = Label(_("Detected NIMs:"))
+
+ fp_version = getFPVersion()
+ if fp_version is None:
+ fp_version = ""
+ else:
+ fp_version = _("Frontprocessor version: %d") % fp_version
+
+ self["fpVersion"] = Label(fp_version)
nims = nimmanager.nimList()
count = 0
"cancel": self.close,
"ok": self.close,
})
-
\ No newline at end of file
--- /dev/null
+def getFPVersion():
+ from fcntl import ioctl
+ try:
+ fp = open("/dev/dbox/fp0")
+ return ioctl(fp.fileno(),0)
+ except IOError:
+ return None
install_DATA = \
FuzzyDate.py XMLTools.py Directories.py NumericalTextInput.py \
KeyBindings.py BoundFunction.py ISO639.py Notifications.py __init__.py \
- RedirectOutput.py
+ RedirectOutput.py DreamboxHardware.py
+
all = ["FuzzyDate.py", "XMLTools.py", "Directories.py", "KeyBindings.py", "BoundFunction.py", "ISO639.py", "Notifications",
- "RedirectOutput.py"]
+ "RedirectOutput.py", "DreamboxHardware.py"]