Stage0 can't dump you into a shell. There isn't one. Just reboot.

Stage5 didn't have a large enough dialog box.  Fix that.  Also use
Andrew's autosizing code.
This commit is contained in:
Jordan K. Hubbard 1994-11-02 09:05:49 +00:00
parent 5a9ee65437
commit 045e459c30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4087
2 changed files with 11 additions and 16 deletions

View File

@ -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 @@ evil_goto:
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 @@ evil_goto:
break;
case 5:
bailout();
/* Be neat.. */
dialog_clear();
end_dialog();
reboot(RB_AUTOBOOT);
break; /* hope not! :) */
}
}
void
bailout()
{
dialog_clear();
end_dialog();
exit(0);
}

View File

@ -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);