summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-02-27 13:31:30 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-02-27 13:31:30 +0000
commit4ad56d5017b21fa3f3aa1052dc308c23afe4dca0 (patch)
tree8e61defbff756a4a61e66888b616b370014782f6 /mdk-stage1
parenta6682583fc15396f9e1464b6c59acc6db4d32442 (diff)
downloaddrakx-4ad56d5017b21fa3f3aa1052dc308c23afe4dca0.tar
drakx-4ad56d5017b21fa3f3aa1052dc308c23afe4dca0.tar.gz
drakx-4ad56d5017b21fa3f3aa1052dc308c23afe4dca0.tar.bz2
drakx-4ad56d5017b21fa3f3aa1052dc308c23afe4dca0.tar.xz
drakx-4ad56d5017b21fa3f3aa1052dc308c23afe4dca0.zip
add "restore Windows Boot Loader" to rescue
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/rescue-gui.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c
index 055c680a3..dd4b9a0df 100644
--- a/mdk-stage1/rescue-gui.c
+++ b/mdk-stage1/rescue-gui.c
@@ -141,13 +141,19 @@ int main(int argc, char **argv)
enum return_type results;
char install_bootloader[] = "Re-install Boot Loader";
+#ifdef __i386__
+ char restore_ms_boot[] = "Restore Windows Boot Loader";
+#endif
char mount_parts[] = "Mount your partitions under /mnt";
char go_to_console[] = "Go to console";
char reboot_[] = "Reboot";
char doc[] = "Doc: what's addressed by this Rescue?";
-
- char * actions[] = { install_bootloader, mount_parts, go_to_console, reboot_, doc, NULL };
+ char * actions[] = { install_bootloader,
+#ifdef __i386__
+ restore_ms_boot,
+#endif
+ mount_parts, go_to_console, reboot_, doc, NULL };
char * choice;
init_frontend("Welcome to " DISTRIB_NAME " Rescue (" VERSION ") " __DATE__ " " __TIME__);
@@ -162,6 +168,11 @@ int main(int argc, char **argv)
if (ptr_begins_static_str(choice, install_bootloader)) {
binary = "/usr/bin/install_bootloader";
}
+#ifdef __i386__
+ if (ptr_begins_static_str(choice, restore_ms_boot)) {
+ binary = "/usr/bin/restore_ms_boot";
+ }
+#endif
if (ptr_begins_static_str(choice, mount_parts)) {
binary = "/usr/bin/guessmounts";
}