Only look at command-line args if we're not running as init - duh!

Thanks, David.
This commit is contained in:
Jordan K. Hubbard 1996-05-28 18:30:30 +00:00
parent 8e3fab403b
commit 8a4078c35e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15961
3 changed files with 6 additions and 6 deletions
release/sysinstall
usr.sbin
sade
sysinstall

View File

@ -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.18 1996/04/28 20:54:03 jkh Exp $
* $Id: main.c,v 1.19 1996/05/16 11:47:33 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -83,7 +83,7 @@ main(int argc, char **argv)
/* Probe for all relevant devices on the system */
deviceGetAll();
if (argc > 1) {
if (argc > 1 && !RunningAsInit) {
int i;
for (i = 1; i < argc; i++) {

View File

@ -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.18 1996/04/28 20:54:03 jkh Exp $
* $Id: main.c,v 1.19 1996/05/16 11:47:33 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -83,7 +83,7 @@ main(int argc, char **argv)
/* Probe for all relevant devices on the system */
deviceGetAll();
if (argc > 1) {
if (argc > 1 && !RunningAsInit) {
int i;
for (i = 1; i < argc; i++) {

View File

@ -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.18 1996/04/28 20:54:03 jkh Exp $
* $Id: main.c,v 1.19 1996/05/16 11:47:33 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -83,7 +83,7 @@ main(int argc, char **argv)
/* Probe for all relevant devices on the system */
deviceGetAll();
if (argc > 1) {
if (argc > 1 && !RunningAsInit) {
int i;
for (i = 1; i < argc; i++) {