From da5038e3ba3f37acf614797bea965c3b075a7b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Mon, 4 Oct 2004 05:14:34 +0000 Subject: allow recovery of MS bootloader on x86 too --- mdk-stage1/rescue-gui.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mdk-stage1/rescue-gui.c') diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c index e57fb9294..a07b8080d 100644 --- a/mdk-stage1/rescue-gui.c +++ b/mdk-stage1/rescue-gui.c @@ -32,6 +32,10 @@ #include "frontend.h" #include "tools.h" +#if defined(__i386__) || defined(__x86_64__) +#define ENABLE_RESCUE_MS_BOOT 1 +#endif + char * env[] = { "PATH=/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sbin:/mnt/usr/sbin:/mnt/bin:/mnt/usr/bin", "LD_LIBRARY_PATH=/lib:/usr/lib:/mnt/lib:/mnt/usr/lib:/usr/X11R6/lib:/mnt/usr/X11R6/lib" @@ -155,7 +159,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) enum return_type results; char install_bootloader[] = "Re-install Boot Loader"; -#ifdef __i386__ +#if ENABLE_RESCUE_MS_BOOT char restore_ms_boot[] = "Restore Windows Boot Loader"; #endif char mount_parts[] = "Mount your partitions under /mnt"; @@ -164,7 +168,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) char doc[] = "Doc: what's addressed by this Rescue?"; char * actions[] = { install_bootloader, -#ifdef __i386__ +#if ENABLE_RESCUE_MS_BOOT restore_ms_boot, #endif mount_parts, go_to_console, reboot_, doc, NULL }; @@ -182,7 +186,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) if (ptr_begins_static_str(choice, install_bootloader)) { binary = "/usr/bin/install_bootloader"; } -#ifdef __i386__ +#if ENABLE_RESCUE_MS_BOOT if (ptr_begins_static_str(choice, restore_ms_boot)) { binary = "/usr/bin/restore_ms_boot"; } -- cgit v1.2.1