aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-08-10 13:45:17 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-10-06 23:06:18 +0200
commit8c0d8d821ec868cfa246923fc3e438b8f71877a0 (patch)
treee60eea6a5f20d7adf787e0f84eb11057fb64d869 /lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
parenta97f3cb3fc63e25d6378a75cb7649563d18f2a5e (diff)
downloadenigma2-8c0d8d821ec868cfa246923fc3e438b8f71877a0.tar.gz
enigma2-8c0d8d821ec868cfa246923fc3e438b8f71877a0.zip
re-commit new NFIFlash plugin (bug #480)
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py')
-rwxr-xr-xlib/python/Plugins/SystemPlugins/NFIFlash/plugin.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py b/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
index 28b33305..1eba1dd4 100755
--- a/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
@@ -2,6 +2,7 @@ from Plugins.Plugin import PluginDescriptor
from Tools.HardwareInfo import HardwareInfo
from Tools.Directories import fileExists
from downloader import NFIDownload, filescan
+from flasher import NFIFlash
def NFIFlasherMain(session, tmp = None, **kwargs):
session.open(NFIDownload, "/home/root" )
@@ -13,16 +14,12 @@ def Plugins(**kwargs):
# currently only available for DM8000
if HardwareInfo().get_device_name() != "dm8000":
return [PluginDescriptor()]
- if fileExists("/usr/share/bootlogo-flasher.mvi"):
- import flasher
- # started from usb stick # don't try to be intelligent and trick this - it's not possible to rewrite the flash memory with a system currently booted from it
- return [PluginDescriptor(where = PluginDescriptor.WHERE_WIZARD, fnc = (9,flasher.NFIFlash))]
- else:
- # started on real enigma2
- return [PluginDescriptor(name=_("NFI Image Flashing"),
- description=_("Download .NFI-Files for USB-Flasher"),
- icon = "flash.png",
- where = PluginDescriptor.WHERE_SOFTWAREMANAGER,
- fnc={"SoftwareSupported": NFICallFnc, "menuEntryName": lambda x: _("NFI Image Flashing"),
- "menuEntryDescription": lambda x: _("Download .NFI-Files for USB-Flasher")}),
- PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_FILESCAN, fnc = filescan)]
+ #return [PluginDescriptor(where = PluginDescriptor.WHERE_WIZARD, fnc = (9,NFIFlash))]
+ # it's not possible to rewrite the flash memory with a system currently booted from it
+ return [PluginDescriptor(name=_("NFI Image Flashing"),
+ description=_("Download .NFI-Files for USB-Flasher"),
+ icon = "flash.png",
+ where = PluginDescriptor.WHERE_SOFTWAREMANAGER,
+ fnc={"SoftwareSupported": NFICallFnc, "menuEntryName": lambda x: _("NFI Image Flashing"),
+ "menuEntryDescription": lambda x: _("Download .NFI-Files for USB-Flasher")}),
+ PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_FILESCAN, fnc = filescan)]