change flasher part of NFIFlash to handle new style md5sum lines
[enigma2.git] / lib / python / Plugins / SystemPlugins / NFIFlash / plugin.py
1 def Plugins(**kwargs):
2         from Plugins.Plugin import PluginDescriptor
3         from Tools.Directories import fileExists
4         if fileExists("/usr/share/bootlogo-flasher.mvi"):
5                 import flasher
6                 # 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
7                 return [PluginDescriptor(where = PluginDescriptor.WHERE_WIZARD, fnc = (9,flasher.NFIFlash))]
8         else:
9                 # started on real enigma2
10                 import downloader
11                 return [PluginDescriptor(name="NFI Image Flashing",
12                         description = _("Download .NFI-Files for USB-Flasher"),
13                         icon = "flash.png",
14                         where = [PluginDescriptor.WHERE_PLUGINMENU],
15                         fnc = downloader.main), PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_FILESCAN, fnc = downloader.filescan)
16                         ]
17                         #,
18                         #PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_WIZARD, fnc = (1,downloader.NFIDownload)) ]