2 from Plugins.Plugin import PluginDescriptor
3 from Tools.Directories import fileExists
4 if fileExists("/usr/share/bootlogo-flasher.mvi"):
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))]
9 # started on real enigma2
11 return [PluginDescriptor(name="NFI Image Flashing",
12 description = _("Download .NFI-Files for USB-Flasher"),
14 where = [PluginDescriptor.WHERE_PLUGINMENU],
15 fnc = downloader.main), PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_FILESCAN, fnc = downloader.filescan)
18 #PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_WIZARD, fnc = (1,downloader.NFIDownload)) ]