summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-29 04:58:11 +0000
committerMike Fulbright <msf@redhat.com>2003-01-29 04:58:11 +0000
commitfb2e148ce4cb1db7c85acd5430dbdd883c598e43 (patch)
tree6e74f26ccdce4a34bb472e82b9dd99941ff6c4e6 /rescue.py
parent5c8528a8810b6f39b022b485604c05aa1e9e6c86 (diff)
downloadanaconda-fb2e148ce4cb1db7c85acd5430dbdd883c598e43.tar.gz
anaconda-fb2e148ce4cb1db7c85acd5430dbdd883c598e43.tar.xz
anaconda-fb2e148ce4cb1db7c85acd5430dbdd883c598e43.zip
make back button work
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py26
1 files changed, 16 insertions, 10 deletions
diff --git a/rescue.py b/rescue.py
index 00e4257f8..2dcfc9a82 100644
--- a/rescue.py
+++ b/rescue.py
@@ -135,16 +135,22 @@ def runRescue(instPath, mountroot, id):
screen = SnackScreen()
- rc = ButtonChoiceWindow(screen, _("Setup Networking"),
- _("Do you want to start the network interfaces on this system?"),
- [_("Yes"), _("No")])
-
- if rc != string.lower(_("No")):
- intf = RescueInterface(screen)
-
- window = network_text.NetworkWindow()
- rc = apply(window, (screen, id.network, intf, 1))
- startNetworking(id.network)
+ while 1:
+ rc = ButtonChoiceWindow(screen, _("Setup Networking"),
+ _("Do you want to start the network interfaces on "
+ "this system?"), [_("Yes"), _("No")])
+
+ if rc != string.lower(_("No")):
+ intf = RescueInterface(screen)
+
+ window = network_text.NetworkWindow()
+ rc = apply(window, (screen, id.network, intf, 1))
+ if rc == INSTALL_OK:
+ startNetworking(id.network)
+ break
+ else:
+ break
+
screen.finish()