1 from Wizard import Wizard, wizardManager
3 from Tools.Directories import fileExists
7 backupfile = "backupenigma2settings.tar"
9 def checkConfigBackup():
10 paths = ['/media/hdd/', '/media/cf/']
12 if fileExists(x + backupfile):
16 if checkConfigBackup() is None:
21 class ImageWizard(Wizard):
22 def __init__(self, session):
23 self.xmlfile = "imagewizard.xml"
24 Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=True, showConfig=True)
29 wizardManager.registerWizard(ImageWizard, backupAvailable, priority = 10)
32 os.system('tar cvpf ' + path + backupfile + ' /etc/enigma2')
35 os.system('cd / && /bin/tar xvpf ' + path + backupfile)