diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-27 10:47:44 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-27 10:47:44 +0000 |
commit | bd92125032e330df18d675d7b0e4104fe0573dcc (patch) | |
tree | 4f8ff13ef2bf6807ea0fbfb311091d2377e98b86 /release/sysinstall/install.c | |
parent | 7811628c58985af2ecaa6a0baacebcaafccc8cc1 (diff) | |
download | FreeBSD-src-bd92125032e330df18d675d7b0e4104fe0573dcc.zip FreeBSD-src-bd92125032e330df18d675d7b0e4104fe0573dcc.tar.gz |
Commit parts of reorg that were diffs. Substantially re-engineer the
extraction and mediaGetFTP() handshaking to solve some unexpected complexities.
Diffstat (limited to 'release/sysinstall/install.c')
-rw-r--r-- | release/sysinstall/install.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index 6d6f86d..56ad315 100644 --- a/release/sysinstall/install.c +++ b/release/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.59 1995/05/26 10:32:28 jkh Exp $ + * $Id: install.c,v 1.60 1995/05/26 20:45:19 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -386,11 +386,11 @@ static void loop_on_root_floppy(); static void root_extract(void) { - int fd, status; + int fd; if (OnCDROM) { fd = open("/floppies/root.flp", O_RDONLY); - mediaExtractDist("root.flp", "/", fd); + (void)mediaExtractDist("root.flp", "/", fd); return; } if (mediaDevice) { @@ -407,12 +407,14 @@ root_extract(void) fd = (*mediaDevice->get)("root.flp", "floppies/"); if (fd != -1) { msgNotify("Loading root floppy from %s", mediaDevice->name); - status = mediaExtractDist("root.flp", "/", fd); + (void)mediaExtractDist("root.flp", "/", fd); if (mediaDevice->close) (*mediaDevice->close)(mediaDevice, fd); else close(fd); } + if (mediaDevice->shutdown) + (*mediaDevice->shutdown)(mediaDevice); break; case DEVICE_TYPE_FLOPPY: @@ -430,9 +432,7 @@ loop_on_root_floppy(void) { int fd; - mediaDevice = NULL; - fd = genericGetDist("root.flp", NULL, TRUE); - if (fd == -1) - return; - mediaExtractDist("root.flp", "/", fd); + fd = getRootFloppy(); + if (fd != -1) + mediaExtractDist("root.flp", "/", fd); } |