summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2002-08-09 07:44:43 +0000
committerjhay <jhay@FreeBSD.org>2002-08-09 07:44:43 +0000
commit49c32ba6e5cca970d9776fe252aec5e42657e4e2 (patch)
tree9b7c33f604708fa3573e29d766db1d20558c6f34 /usr.sbin/sysinstall
parent33368833bcfa4ef150f60731d435036f8ecae62b (diff)
downloadFreeBSD-src-49c32ba6e5cca970d9776fe252aec5e42657e4e2.zip
FreeBSD-src-49c32ba6e5cca970d9776fe252aec5e42657e4e2.tar.gz
Teach sysinstall that documents on the boot floppy might not be gzipped.
Reviewed by: ru
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r--usr.sbin/sysinstall/system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index 2ad3a48..07fc2b0 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -348,9 +348,15 @@ systemHelpFile(char *file, char *buf)
snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp.gz", file);
if (file_readable(buf))
return expand(buf);
+ snprintf(buf, FILENAME_MAX, "/stand/help/%s.hlp", file);
+ if (file_readable(buf))
+ return expand(buf);
snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT.gz", file);
if (file_readable(buf))
return expand(buf);
+ snprintf(buf, FILENAME_MAX, "/stand/help/%s.TXT", file);
+ if (file_readable(buf))
+ return expand(buf);
snprintf(buf, FILENAME_MAX, "/usr/src/usr.sbin/sysinstall/help/%s.hlp", file);
if (file_readable(buf))
return buf;
OpenPOWER on IntegriCloud