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