summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/main.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-12 11:14:15 +0000
committerjkh <jkh@FreeBSD.org>1996-07-12 11:14:15 +0000
commit9b9952dd90c3f90e52a9ed9353801ce3313f83dd (patch)
tree8d69a0c48a81d30304bc275196093185da0c25df /usr.sbin/sade/main.c
parent95254df1ef3ce9c7e4c30fc83748a3faeb5d7b32 (diff)
downloadFreeBSD-src-9b9952dd90c3f90e52a9ed9353801ce3313f83dd.zip
FreeBSD-src-9b9952dd90c3f90e52a9ed9353801ce3313f83dd.tar.gz
Fix something I broke with CDROM installation (well, I knew my first
test CD would turn at least one bug up :-).
Diffstat (limited to 'usr.sbin/sade/main.c')
-rw-r--r--usr.sbin/sade/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/sade/main.c b/usr.sbin/sade/main.c
index 8c20589..647efd3 100644
--- a/usr.sbin/sade/main.c
+++ b/usr.sbin/sade/main.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated for what's essentially a complete rewrite.
*
- * $Id: main.c,v 1.22 1996/06/26 09:09:28 jkh Exp $
+ * $Id: main.c,v 1.23 1996/07/02 01:03:44 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -86,17 +86,17 @@ main(int argc, char **argv)
/* Probe for all relevant devices on the system */
deviceGetAll();
- /* Try to set ourselves up as a CDROM if we can do that first */
- if (DITEM_STATUS(mediaSetCDROM(NULL)) == DITEM_SUCCESS) {
- /* If we can't initialize it, it's probably not a FreeBSD CDROM so punt on it */
- if (!mediaDevice->init(mediaDevice))
- mediaDevice = NULL;
- }
-
/* First, see if we have any arguments to process (and argv[0] counts if it's not "sysinstall") */
if (!RunningAsInit) {
int i, start_arg;
+ /* Try to set ourselves up as a CDROM if we can do that first */
+ if (DITEM_STATUS(mediaSetCDROM(NULL)) == DITEM_SUCCESS) {
+ /* If we can't initialize it, it's probably not a FreeBSD CDROM so punt on it */
+ if (!mediaDevice->init(mediaDevice))
+ mediaDevice = NULL;
+ }
+
if (!strstr(argv[0], "sysinstall"))
start_arg = 0;
else
OpenPOWER on IntegriCloud