1 from Wizard import Wizard, wizardManager
3 from Components.config import configElementBoolean, config
4 from Components.Pixmap import *
6 from LanguageSelection import LanguageSelection
7 from Tools.Directories import fileExists
11 backupfile = "backupenigma2settings.tar"
13 def checkConfigBackup():
14 paths = ['/media/hdd/', '/media/cf/']
16 if fileExists(x + backupfile):
20 if checkConfigBackup() is None:
25 class ImageWizard(Wizard):
27 <screen position="0,0" size="720,576" title="Welcome..." flags="wfNoBorder">
28 <widget name="text" position="50,100" size="440,250" font="Regular;23" />
29 <widget name="list" position="50,350" zPosition="1" size="440,200" />
30 <widget name="config" position="50,350" zPosition="1" size="440,200" transparent="1" scrollbarMode="showOnDemand" />
33 def __init__(self, session):
34 self.xmlfile = "imagewizard.xml"
36 Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=True, showConfig=True)
41 wizardManager.registerWizard(ImageWizard, backupAvailable)
44 os.system('tar cvpf ' + path + backupfile + ' /etc/enigma2')
47 os.system('cd / && tar xvpf ' + path + backupfile + ' etc/enigma2')