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