35c9f61260
use dialog functions properly move alloc_memory early to prevent core dump at stage 3 Change 25x80 to 24x80 Fix setenv diagnostic Fix Fatal to call end_dialog()
34 lines
879 B
C
34 lines
879 B
C
/*
|
|
* ----------------------------------------------------------------------------
|
|
* "THE BEER-WARE LICENSE" (Revision 42):
|
|
* <phk@login.dkuug.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
|
|
* ----------------------------------------------------------------------------
|
|
*
|
|
* $Id: stage0.c,v 1.2 1994/10/20 04:59:56 phk Exp $
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#include <dialog.h>
|
|
|
|
#include "sysinstall.h"
|
|
|
|
void
|
|
stage0()
|
|
{
|
|
if (!access(README_FILE, R_OK)) {
|
|
dialog_clear();
|
|
dialog_textbox("READ ME FIRST", README_FILE, 24, 80);
|
|
}
|
|
if (!access(COPYRIGHT_FILE, R_OK)) {
|
|
dialog_clear();
|
|
dialog_textbox("COPYRIGHT", COPYRIGHT_FILE, 24, 80);
|
|
}
|
|
}
|