summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-12-12 21:40:28 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-12-12 21:40:28 +0000
commit3a5d3e83a3a32d442c294528d66adc0282013fd4 (patch)
tree2124f7dd49e5f0a8e92e70395018ff6c906e1f1a /mdk-stage1
parent30883640d7db87ead35245050a2c836be567c541 (diff)
downloaddrakx-backup-do-not-use-3a5d3e83a3a32d442c294528d66adc0282013fd4.tar
drakx-backup-do-not-use-3a5d3e83a3a32d442c294528d66adc0282013fd4.tar.gz
drakx-backup-do-not-use-3a5d3e83a3a32d442c294528d66adc0282013fd4.tar.bz2
drakx-backup-do-not-use-3a5d3e83a3a32d442c294528d66adc0282013fd4.tar.xz
drakx-backup-do-not-use-3a5d3e83a3a32d442c294528d66adc0282013fd4.zip
have a bunch of Rescue documentation directly
available from the Rescue-menu following suggestions by Denis among others
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/rescue-gui.c7
1 files changed, 6 insertions, 1 deletions
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;