mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Make ShowFile() now show gzip'd text files. This should save a fair
bit of space on the install floppy. Modify stage0 and the target names accordingly.
This commit is contained in:
parent
e897bbe2ee
commit
b2e3ee0a69
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4178
@ -171,14 +171,14 @@ AskEm(WINDOW *w,char *prompt, char *answer, int len)
|
||||
void
|
||||
ShowFile(char *filename, char *header)
|
||||
{
|
||||
char buf[800];
|
||||
char buf[256];
|
||||
if (access(filename, R_OK)) {
|
||||
sprintf(buf,"Odd, I thought I had a file called %s around here somewhere,\nbut I can't seem to find it now that I need it. Sorry about that",filename);
|
||||
dialog_msgbox("Sorry!", buf,
|
||||
6, 75, 1);
|
||||
sprintf(buf, "Odd, I thought I had a file called %s around here somewhere,\nbut I can't seem to find it now that I need it. Sorry about that!", filename);
|
||||
dialog_msgbox("Sorry!", buf, 6, 75, 1);
|
||||
return;
|
||||
}
|
||||
dialog_clear();
|
||||
dialog_textbox(header, filename, LINES-1, COLS);
|
||||
sprintf(buf, "/stand/gzip -c -d %s", filename);
|
||||
dialog_prgbox(header, buf, LINES-1, COLS);
|
||||
dialog_clear();
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ static unsigned char *welcome[] = {
|
||||
"1. README",
|
||||
"Read the `READ ME FIRST' File .",
|
||||
"2. Release Notes",
|
||||
"Read the 2.0 release notes (recommended).",
|
||||
"Read the 2.0 Release Notes (recommended).",
|
||||
"3. COPYRIGHT",
|
||||
"Read FreeBSD Copyright Information.",
|
||||
"4. Proceed",
|
||||
|
@ -46,10 +46,10 @@
|
||||
#define BOOT_MAGIC 0xAA55
|
||||
#define ACTIVE 0x80
|
||||
|
||||
#define COPYRIGHT_FILE "/COPYRIGHT"
|
||||
#define README_FILE "/README"
|
||||
#define HELPME_FILE "/DISKSPACE.FAQ"
|
||||
#define RELNOTES_FILE "/RELNOTES.FreeBSD"
|
||||
#define COPYRIGHT_FILE "/COPYRIGHT.gz"
|
||||
#define README_FILE "/README.gz"
|
||||
#define HELPME_FILE "/DISKSPACE.FAQ.gz"
|
||||
#define RELNOTES_FILE "/RELNOTES.FreeBSD.gz"
|
||||
|
||||
#ifndef EXTERN
|
||||
# define EXTERN extern
|
||||
|
Loading…
Reference in New Issue
Block a user