add building of NFIFlash plugin, but display only for DM8000
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Mon, 20 Oct 2008 18:25:50 +0000 (18:25 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Mon, 20 Oct 2008 18:25:50 +0000 (18:25 +0000)
configure.ac
lib/python/Plugins/SystemPlugins/Makefile.am
lib/python/Plugins/SystemPlugins/NFIFlash/plugin.py

index b870075..7aebe25 100644 (file)
@@ -114,6 +114,7 @@ lib/python/Plugins/SystemPlugins/PositionerSetup/Makefile
 lib/python/Plugins/SystemPlugins/Hotplug/Makefile
 lib/python/Plugins/SystemPlugins/ConfigurationBackup/Makefile
 lib/python/Plugins/SystemPlugins/DefaultServicesScanner/Makefile
+lib/python/Plugins/SystemPlugins/NFIFlash/Makefile
 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
index a4de55e..36b4bde 100644 (file)
@@ -1 +1 @@
-SUBDIRS = SoftwareUpdate FrontprocessorUpgrade PositionerSetup ConfigurationBackup Satfinder SkinSelector SatelliteEquipmentControl Videomode VideoTune Hotplug DefaultServicesScanner
+SUBDIRS = SoftwareUpdate FrontprocessorUpgrade PositionerSetup ConfigurationBackup Satfinder SkinSelector SatelliteEquipmentControl Videomode VideoTune Hotplug DefaultServicesScanner NFIFlash
index 00a9d8f..40914e1 100644 (file)
@@ -1,5 +1,9 @@
 def Plugins(**kwargs):
        from Plugins.Plugin import PluginDescriptor
+       from Tools.HardwareInfo import HardwareInfo
+       # currently only available for DM8000
+       if HardwareInfo().get_device_name() != "dm8000":
+               return [PluginDescriptor()]
        from Tools.Directories import fileExists
        if fileExists("/usr/share/bootlogo-flasher.mvi"):
                import flasher
@@ -14,5 +18,3 @@ def Plugins(**kwargs):
                        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)) ]