summaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall/stage0.c
blob: 72d3795f69a71361f50b0cd2aa8c6258f37b040b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * ----------------------------------------------------------------------------
 * "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$
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include <ncurses.h>
#include <dialog.h>

#include "sysinstall.h"

void
stage0()
{
	if (!access(COPYRIGHT_FILE, R_OK)) {
		clear();
		dialog_textbox("COPYRIGHT", COPYRIGHT_FILE, 25, 80);
	}
	if (!access(README_FILE, R_OK)) {
		clear();
		dialog_textbox("READ ME FIRST", README_FILE, 25, 80);
	}
}
OpenPOWER on IntegriCloud