aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-01-29 11:44:23 +0100
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-01-29 11:44:23 +0100
commite79a0c2d96337514acb0763e537235c0ef997100 (patch)
treeb3d286feb3fa904e3942c4ffd7ee55b5605b14a8 /lib/python/Plugins/SystemPlugins
parentaf3c70e61bf4e7e2e0afc51b0e3a0cd717c20f54 (diff)
downloadenigma2-e79a0c2d96337514acb0763e537235c0ef997100.tar.gz
enigma2-e79a0c2d96337514acb0763e537235c0ef997100.zip
fix skipping of configuration backup
Diffstat (limited to 'lib/python/Plugins/SystemPlugins')
-rw-r--r--lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py
index 7b4add56..c91c8588 100644
--- a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py
+++ b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py
@@ -660,14 +660,15 @@ class NFIDownload(Screen):
self.session.open(Console, title = "Backup running", cmdlist = ["tar -czvf " + "/mnt/usb/" + self.backup_file + " /etc/enigma2/ /etc/network/interfaces /etc/wpa_supplicant.conf"], finishedCallback = self.backup_finished, closeOnSuccess = True)
else:
self.backup_file = None
- self.backup_finished()
-
- def backup_finished(self):
- wizardfd = open("/mnt/usb/wizard.nfo", "w")
- if wizardfd:
- wizardfd.write("image: "+self["feedlist"].getNFIname()+'\n')
- wizardfd.write("configuration: "+self.backup_file+'\n')
- wizardfd.close()
+ self.backup_finished(skipped=True)
+
+ def backup_finished(self, skipped=False):
+ if not skipped:
+ wizardfd = open("/mnt/usb/wizard.nfo", "w")
+ if wizardfd:
+ wizardfd.write("image: "+self["feedlist"].getNFIname()+'\n')
+ wizardfd.write("configuration: "+self.backup_file+'\n')
+ wizardfd.close()
self.session.open(MessageBox, _("To update your Dreambox firmware, please follow these steps:\n1) Turn off your box with the rear power switch and plug in the bootable USB stick.\n2) Turn mains back on and hold the DOWN button on the front panel pressed for 10 seconds.\n3) Wait for bootup and follow instructions of the wizard."), type = MessageBox.TYPE_INFO)
def closeCB(self):