aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-12 16:37:24 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-12 16:37:24 +0000
commit2ca2437ed16a3676fea816e2061aefb69ccf047d (patch)
treea78602f52440f0a54f46ff7885e4936d49236908 /lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
parent7e9d85cd54eec034bf4e98afef42f827084f54c3 (diff)
downloadenigma2-2ca2437ed16a3676fea816e2061aefb69ccf047d.tar.gz
enigma2-2ca2437ed16a3676fea816e2061aefb69ccf047d.zip
add NFIFlash plugin
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py')
-rw-r--r--lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py b/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
new file mode 100644
index 00000000..0394d81b
--- /dev/null
+++ b/lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py
@@ -0,0 +1,20 @@
+# -*- coding: utf8 -*-
+
+def Plugins(**kwargs):
+ from Plugins.Plugin import PluginDescriptor
+ from Tools.Directories import fileExists
+ 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
+ import downloader
+ return [PluginDescriptor(name="NFI Image Flashing",
+ description = _("Download .NFI-Files for USB-Flasher"),
+ icon = "flash.png",
+ where = [PluginDescriptor.WHERE_PLUGINMENU],
+ fnc = downloader.main), PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_FILESCAN, fnc = downloader.filescan)
+ ]
+ #,
+ #PluginDescriptor(name="nfi", where = PluginDescriptor.WHERE_WIZARD, fnc = (1,downloader.NFIDownload)) ]