diff options
author | jkh <jkh@FreeBSD.org> | 1996-05-28 18:30:30 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-05-28 18:30:30 +0000 |
commit | a912abf585a32639edcf9a6149c122e81563212f (patch) | |
tree | 7162c5de89fd802e20f1a1f075100be718274e00 | |
parent | 5f845e903ba063f27d1b29e19d5b93cba7ffec31 (diff) | |
download | FreeBSD-src-a912abf585a32639edcf9a6149c122e81563212f.zip FreeBSD-src-a912abf585a32639edcf9a6149c122e81563212f.tar.gz |
Only look at command-line args if we're not running as init - duh!
Thanks, David.
-rw-r--r-- | release/sysinstall/main.c | 4 | ||||
-rw-r--r-- | usr.sbin/sade/main.c | 4 | ||||
-rw-r--r-- | usr.sbin/sysinstall/main.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/release/sysinstall/main.c b/release/sysinstall/main.c index c729158..60d292c 100644 --- a/release/sysinstall/main.c +++ b/release/sysinstall/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.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++) { diff --git a/usr.sbin/sade/main.c b/usr.sbin/sade/main.c index c729158..60d292c 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.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++) { diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c index c729158..60d292c 100644 --- a/usr.sbin/sysinstall/main.c +++ b/usr.sbin/sysinstall/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.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++) { |