diff options
author | jhay <jhay@FreeBSD.org> | 2002-08-09 07:44:43 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 2002-08-09 07:44:43 +0000 |
commit | 49c32ba6e5cca970d9776fe252aec5e42657e4e2 (patch) | |
tree | 9b7c33f604708fa3573e29d766db1d20558c6f34 | |
parent | 33368833bcfa4ef150f60731d435036f8ecae62b (diff) | |
download | FreeBSD-src-49c32ba6e5cca970d9776fe252aec5e42657e4e2.zip FreeBSD-src-49c32ba6e5cca970d9776fe252aec5e42657e4e2.tar.gz |
Teach sysinstall that documents on the boot floppy might not be gzipped.
Reviewed by: ru
-rw-r--r-- | usr.sbin/sade/system.c | 6 | ||||
-rw-r--r-- | usr.sbin/sysinstall/system.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index 2ad3a48..07fc2b0 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/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; 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; |