From fd238ef1077c33641388904b3c8816ac2b534188 Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Thu, 16 Oct 2008 14:37:52 +0000 Subject: remove full /etc backup option and change the position of the green and red button to follow the positions of the remote control (on behalf of sat-man) ---------------------------------------------------------------------- --- .../Plugins/SystemPlugins/ConfigurationBackup/plugin.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py') diff --git a/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py b/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py index 89f979fe..9ff8c05d 100644 --- a/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py @@ -33,10 +33,10 @@ class BackupSetup(Screen): skin = """ - - - + + + @@ -104,7 +104,7 @@ class BackupSetup(Screen): self.list = [ ] self["config"] = ConfigList(self.list) self.backup = ConfigSubsection() - self.backup.type = ConfigSelection(choices = [("full", _("full /etc directory")), ("settings", _("only /etc/enigma2 directory")), ("var", _("/var directory")), ("skin", _("/usr/share/enigma2 directory"))], default="settings") + self.backup.type = ConfigSelection(choices = [("settings", _("only /etc/enigma2 directory")), ("var", _("/var directory")), ("skin", _("/usr/share/enigma2 directory"))], default="settings") self.backup.location = ConfigSelection(choices = [("usb", _("USB Stick")), ("cf", _("CF Drive")), ("hdd", _("Harddisk"))]) self.list.append(getConfigListEntry(_("Backup Mode"), self.backup.type)) self.list.append(getConfigListEntry(_("Backup Location"), self.backup.location)) @@ -130,10 +130,7 @@ class BackupSetup(Screen): d = localtime() dt = date(d.tm_year, d.tm_mon, d.tm_mday) self.path = BackupPath[self.backup.location.value] - if self.backup.type.value == "full": - print "Backup Mode: Full" - self.session.open(Console, title = "Backup running", cmdlist = ["tar -czvf " + self.path + "/" + str(dt) + "_full_backup.tar.gz /etc/"]) - elif self.backup.type.value == "settings": + if self.backup.type.value == "settings": print "Backup Mode: Settings" self.session.open(Console, title = "Backup running", cmdlist = ["tar -czvf " + self.path + "/" + str(dt) + "_settings_backup.tar.gz /etc/enigma2/"]) elif self.backup.type.value == "var": -- cgit v1.2.3