diff options
author | jkh <jkh@FreeBSD.org> | 1996-04-28 20:54:11 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-04-28 20:54:11 +0000 |
commit | 590017a61ca58be6918c7060127977c51861c36b (patch) | |
tree | 4feb68ad24dca3ea106d8e7eaa8949c9e16a1f31 /usr.sbin/sysinstall/network.c | |
parent | c17cc2e1bedeb94384f0251f46ed703860b946d6 (diff) | |
download | FreeBSD-src-590017a61ca58be6918c7060127977c51861c36b.zip FreeBSD-src-590017a61ca58be6918c7060127977c51861c36b.tar.gz |
Add a new -fake argument to make sysinstall not actually change things while
I'm testing it.
Diffstat (limited to 'usr.sbin/sysinstall/network.c')
-rw-r--r-- | usr.sbin/sysinstall/network.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/network.c b/usr.sbin/sysinstall/network.c index f1d7c30..0349321 100644 --- a/usr.sbin/sysinstall/network.c +++ b/usr.sbin/sysinstall/network.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: network.c,v 1.10 1996/04/13 13:32:03 jkh Exp $ + * $Id: network.c,v 1.11 1996/04/23 01:29:29 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -177,7 +177,7 @@ startPPP(Device *devp) int fd2; FILE *fp; char *val; - pid_t pid; + pid_t pid = 0; char myaddr[16], provider[16], speed[16]; /* These are needed to make ppp work */ @@ -233,7 +233,8 @@ startPPP(Device *devp) msgConfirm("Warning: No /dev/tun0 device. PPP will not work!"); return 0; } - if (!(pid = fork())) { + + if (!Fake && !(pid = fork())) { int i, fd; struct termios foo; extern int login_tty(int); |