diff --git a/sbin/sysinstall/stage0.c b/sbin/sysinstall/stage0.c index 58cef3166c01..e14c2291a168 100644 --- a/sbin/sysinstall/stage0.c +++ b/sbin/sysinstall/stage0.c @@ -33,12 +33,10 @@ static unsigned char *welcome[] = { "Proceed with installation.", "4. Fixit", "Repair existing installation (`fixit' mode).", - "5. Exit", - "Exit to shell.", + "5. Quit", + "Don't do anything, just reboot.", }; -void bailout(void); - void stage0() { @@ -46,7 +44,9 @@ stage0() if (dialog_menu("Welcome to FreeBSD!", "Please select one of the following options:", 15, 75, 6, 5, welcome, selection)) { - bailout(); + dialog_clear(); + end_dialog(); + reboot(RB_AUTOBOOT); } switch (atoi(selection)) { case 1: /* View readme */ @@ -77,15 +77,10 @@ stage0() break; case 5: - bailout(); + /* Be neat.. */ + dialog_clear(); + end_dialog(); + reboot(RB_AUTOBOOT); break; /* hope not! :) */ } } - -void -bailout() -{ - dialog_clear(); - end_dialog(); - exit(0); -} diff --git a/sbin/sysinstall/stage5.c b/sbin/sysinstall/stage5.c index e999b1db8ac4..e9011d26ac2b 100644 --- a/sbin/sysinstall/stage5.c +++ b/sbin/sysinstall/stage5.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: stage5.c,v 1.3 1994/10/29 10:01:37 phk Exp $ + * $Id: stage5.c,v 1.4 1994/11/02 06:19:50 jkh Exp $ * */ @@ -36,7 +36,7 @@ Thank you for your patience!"; void stage5() { - dialog_msgbox(TITLE, msg, 7, 75, 1); + dialog_msgbox(TITLE, msg, strheight(msg) + 4, strwidth(msg) + 4, 1); end_dialog(); dialog_active=0; setenv("PATH","/stand",1);