diff options
| author | acid-burn <acid-burn@opendreambox.org> | 2011-02-07 21:52:19 +0100 |
|---|---|---|
| committer | acid-burn <acid-burn@opendreambox.org> | 2011-02-07 21:52:19 +0100 |
| commit | 81ed3b8706eb034f04e9db87fbcfd9dbba39e125 (patch) | |
| tree | f6575114c438399991248b0681c2c83b5981029b /lib/python/Plugins/SystemPlugins | |
| parent | 65a7c0d34bf86543475e98a781a93aa59013b6ce (diff) | |
| download | enigma2-81ed3b8706eb034f04e9db87fbcfd9dbba39e125.tar.gz enigma2-81ed3b8706eb034f04e9db87fbcfd9dbba39e125.zip | |
Enigma2-Plugins: implement needsRestart=True for plugins that need a enigma2 restart after installation.
refs #670
Diffstat (limited to 'lib/python/Plugins/SystemPlugins')
| -rwxr-xr-x[-rw-r--r--] | lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py | 4 | ||||
| -rwxr-xr-x[-rw-r--r--] | lib/python/Plugins/SystemPlugins/Hotplug/plugin.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py b/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py index 38b80c95..6cb30de2 100644..100755 --- a/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py +++ b/lib/python/Plugins/SystemPlugins/FrontprocessorUpgrade/plugin.py @@ -76,11 +76,11 @@ def Plugins(**kwargs): newversion = getUpgradeVersion() or 0 list = [] if version is not None and version < newversion: - list.append(PluginDescriptor(name="FP Upgrade", where = PluginDescriptor.WHERE_WIZARD, fnc=(8, FPUpgrade))) + list.append(PluginDescriptor(name="FP Upgrade", where = PluginDescriptor.WHERE_WIZARD, needsRestart = True, fnc=(8, FPUpgrade))) try: msg = open("/proc/stb/message").read() - list.append(PluginDescriptor(name="System Message Check", where = PluginDescriptor.WHERE_WIZARD, fnc=(9, SystemMessage, msg))) + list.append(PluginDescriptor(name="System Message Check", where = PluginDescriptor.WHERE_WIZARD, needsRestart = True, fnc=(9, SystemMessage, msg))) except: pass diff --git a/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py b/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py index 1f379f10..84cbbcb6 100644..100755 --- a/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Hotplug/plugin.py @@ -297,4 +297,4 @@ def autostart(reason, **kwargs): reactor.listenUNIX("/tmp/hotplug.socket", factory) def Plugins(**kwargs): - return PluginDescriptor(name = "Hotplug", description = "listens to hotplug events", where = PluginDescriptor.WHERE_AUTOSTART, fnc = autostart) + return PluginDescriptor(name = "Hotplug", description = "listens to hotplug events", where = PluginDescriptor.WHERE_AUTOSTART, needsRestart = True, fnc = autostart) |
