From 3a5d3e83a3a32d442c294528d66adc0282013fd4 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 12 Dec 2001 21:40:28 +0000 Subject: have a bunch of Rescue documentation directly available from the Rescue-menu following suggestions by Denis among others --- mdk-stage1/rescue-gui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c index bed0b403c..055c680a3 100644 --- a/mdk-stage1/rescue-gui.c +++ b/mdk-stage1/rescue-gui.c @@ -144,8 +144,10 @@ int main(int argc, char **argv) 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_, NULL }; + + char * actions[] = { install_bootloader, mount_parts, go_to_console, reboot_, doc, NULL }; char * choice; init_frontend("Welcome to " DISTRIB_NAME " Rescue (" VERSION ") " __DATE__ " " __TIME__); @@ -170,6 +172,9 @@ int main(int argc, char **argv) sleep(2); reboot(0xfee1dead, 672274793, 0x01234567); } + if (ptr_begins_static_str(choice, doc)) { + binary = "/usr/bin/rescue-doc"; + } if (binary) { int wait_status; -- cgit v1.2.1