/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * 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 * ---------------------------------------------------------------------------- * * $Id: stage5.c,v 1.17 1994/12/27 23:26:57 jkh Exp $ * */ #include #include #include #include #include #include #include #include #include #include #include "sysinstall.h" static unsigned char msg[] = " You are now done with the initial phase of the installation that gets FreeBSD onto your hard disk. At this point, we need to go on 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."; void stage5() { int exec_sh = 1; setenv("PATH","/stand",1); for(;;) { exec_sh = dialog_yesno("End of initial installation", msg, -1, -1); end_dialog(); dialog_active=0; if (exec_sh) exec (2, "/stand/sh", "/stand/-sh", 0); else exec (3, "/stand/scripts/bininst.sh", "/stand/scripts/-bininst.sh", 0); dialog_active=1; } }