summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/sysinstall/media.c5
-rw-r--r--usr.sbin/sysinstall/media.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/release/sysinstall/media.c b/release/sysinstall/media.c
index 7384b41..10bda7c 100644
--- a/release/sysinstall/media.c
+++ b/release/sysinstall/media.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: media.c,v 1.95 1999/02/05 22:15:50 jkh Exp $
+ * $Id: media.c,v 1.96 1999/02/15 00:49:33 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -774,6 +774,9 @@ mediaGenericGet(char *base, const char *file)
snprintf(buf, PATH_MAX, "%s/%s", base, file);
if (file_readable(buf))
return fopen(buf, "r");
+ snprintf(buf, PATH_MAX, "%s/FreeBSD/%s", base, file);
+ if (file_readable(buf))
+ return fopen(buf, "r");
snprintf(buf, PATH_MAX, "%s/releases/%s", base, file);
if (file_readable(buf))
return fopen(buf, "r");
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c
index 7384b41..10bda7c 100644
--- a/usr.sbin/sysinstall/media.c
+++ b/usr.sbin/sysinstall/media.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: media.c,v 1.95 1999/02/05 22:15:50 jkh Exp $
+ * $Id: media.c,v 1.96 1999/02/15 00:49:33 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -774,6 +774,9 @@ mediaGenericGet(char *base, const char *file)
snprintf(buf, PATH_MAX, "%s/%s", base, file);
if (file_readable(buf))
return fopen(buf, "r");
+ snprintf(buf, PATH_MAX, "%s/FreeBSD/%s", base, file);
+ if (file_readable(buf))
+ return fopen(buf, "r");
snprintf(buf, PATH_MAX, "%s/releases/%s", base, file);
if (file_readable(buf))
return fopen(buf, "r");
OpenPOWER on IntegriCloud