aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/CleanupWizard/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/CleanupWizard/plugin.py')
-rwxr-xr-xlib/python/Plugins/SystemPlugins/CleanupWizard/plugin.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/CleanupWizard/plugin.py b/lib/python/Plugins/SystemPlugins/CleanupWizard/plugin.py
new file mode 100755
index 00000000..c1af50d2
--- /dev/null
+++ b/lib/python/Plugins/SystemPlugins/CleanupWizard/plugin.py
@@ -0,0 +1,29 @@
+from Screens.Screen import Screen
+from Plugins.Plugin import PluginDescriptor
+from Components.PluginComponent import plugins
+from Components.config import config
+from CleanupWizard import checkFreeSpaceAvailable
+
+freeSpace = checkFreeSpaceAvailable()
+print "[CleanupWizard] freeSpaceAvailable-->",freeSpace
+
+
+if freeSpace is None:
+ internalMemoryExceeded = 0
+elif int(freeSpace) <= 12048:
+ internalMemoryExceeded = 1
+else:
+ internalMemoryExceeded = 0
+
+
+def CleanupWizard(*args, **kwargs):
+ from CleanupWizard import CleanupWizard
+ return CleanupWizard(*args, **kwargs)
+
+def Plugins(**kwargs):
+ list = []
+ if not config.misc.firstrun.value:
+ if internalMemoryExceeded:
+ list.append(PluginDescriptor(name=_("Cleanup Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(1, CleanupWizard)))
+ return list
+