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 b870075e056ada55ad4536e8be8e359d712a4f2f..7aebe25f3b2a5a1af08c758cf260eb8c52b1478b 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/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
 lib/python/Plugins/SystemPlugins/Satfinder/Makefile
 lib/python/Plugins/SystemPlugins/SkinSelector/Makefile
 lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/Makefile
index a4de55e66136c73e6b23a59df55f6135808f7e3d..36b4bde5af63bdaae5228bbe471c3f758e71bbef 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 00a9d8fde8133a5b4333135de6df8646d23c4a34..40914e123252f7b87f0efa41b0c19f6a2f49608f 100644 (file)
@@ -1,5 +1,9 @@
 def Plugins(**kwargs):
        from Plugins.Plugin import PluginDescriptor
 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
        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)
                        ]
                        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)) ]