1994-10-26 02:53:15 +00:00
|
|
|
/*
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
* "THE BEER-WARE LICENSE" (Revision 42):
|
|
|
|
* <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
|
|
|
|
* can do whatever you want with this stuff. If we meet some day, and you think
|
|
|
|
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*
|
1995-01-28 01:13:29 +00:00
|
|
|
* $Id: stage5.c,v 1.17 1994/12/27 23:26:57 jkh Exp $
|
1994-10-26 02:53:15 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <dialog.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/mount.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
#include "sysinstall.h"
|
|
|
|
|
1994-11-02 06:19:53 +00:00
|
|
|
static unsigned char msg[] = "
|
1994-11-06 02:24:45 +00:00
|
|
|
You are now done with the initial phase of the installation that
|
1994-11-06 01:16:30 +00:00
|
|
|
gets FreeBSD onto your hard disk. At this point, we need to go on
|
1994-11-11 07:58:09 +00:00
|
|
|
to use FTP, NFS, Tape, CD or DOS floppies to get a bindist onto your
|
|
|
|
system so that it's actually usable. Select Yes to proceed with this
|
|
|
|
phase, or No to simply drop into a shell.";
|
1994-11-02 06:19:53 +00:00
|
|
|
|
1994-10-26 02:53:15 +00:00
|
|
|
void
|
|
|
|
stage5()
|
|
|
|
{
|
1994-11-06 01:16:30 +00:00
|
|
|
int exec_sh = 1;
|
1994-11-05 07:23:58 +00:00
|
|
|
|
1994-10-29 10:01:40 +00:00
|
|
|
setenv("PATH","/stand",1);
|
1994-11-05 07:23:58 +00:00
|
|
|
for(;;) {
|
1994-12-27 23:26:59 +00:00
|
|
|
exec_sh = dialog_yesno("End of initial installation",
|
|
|
|
msg, -1, -1);
|
|
|
|
end_dialog();
|
|
|
|
dialog_active=0;
|
1994-11-05 07:23:58 +00:00
|
|
|
if (exec_sh)
|
1995-01-28 01:13:29 +00:00
|
|
|
exec (2, "/stand/sh", "/stand/-sh", 0);
|
1994-11-05 07:23:58 +00:00
|
|
|
else
|
1995-01-28 01:13:29 +00:00
|
|
|
exec (3, "/stand/scripts/bininst.sh",
|
|
|
|
"/stand/scripts/-bininst.sh", 0);
|
1994-12-27 23:26:59 +00:00
|
|
|
dialog_active=1;
|
1994-11-05 07:23:58 +00:00
|
|
|
}
|
1994-10-26 02:53:15 +00:00
|
|
|
}
|