aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/ImageWizard.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-02-13 15:11:21 +0100
committerFelix Domke <tmbinc@elitedvb.net>2009-02-13 15:11:21 +0100
commit935c5f9abeb0d6189c57f8406855d8437db8b0db (patch)
tree1fdce1e69db6448fc8332f9e656868902ca40d1b /lib/python/Screens/ImageWizard.py
parent09dca95c63c7c9df2ccf08332f11b69673156e5b (diff)
parentda0da334b1314329d7d1f294d8df59acf66ac0d0 (diff)
downloadenigma2-935c5f9abeb0d6189c57f8406855d8437db8b0db.tar.gz
enigma2-935c5f9abeb0d6189c57f8406855d8437db8b0db.zip
Merge branch 'master' of git://git.opendreambox.org/git/acidburn/enigma2-master
Diffstat (limited to 'lib/python/Screens/ImageWizard.py')
-rw-r--r--lib/python/Screens/ImageWizard.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/python/Screens/ImageWizard.py b/lib/python/Screens/ImageWizard.py
deleted file mode 100644
index faf6120b..00000000
--- a/lib/python/Screens/ImageWizard.py
+++ /dev/null
@@ -1,38 +0,0 @@
-from Wizard import Wizard, wizardManager
-
-from Tools.Directories import fileExists
-
-import os
-
-backupfile = "backupenigma2settings.tar"
-
-def checkConfigBackup():
- paths = ['/media/hdd/', '/media/cf/']
- for x in paths:
- if fileExists(x + backupfile):
- return x
- return None
-
-if checkConfigBackup() is None:
- backupAvailable = 0
-else:
- backupAvailable = 1
-
-class ImageWizard(Wizard):
- def __init__(self, session):
- self.xmlfile = "imagewizard.xml"
- Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=True, showConfig=True)
-
- def markDone(self):
- pass
-
-wizardManager.registerWizard(ImageWizard, backupAvailable, priority = 10)
-
-def doBackup(path):
- os.system('tar cvpf ' + path + backupfile + ' /etc/enigma2')
-
-def doRestore(path):
- os.system('cd / && /bin/tar xvpf ' + path + backupfile)
-
-
- \ No newline at end of file