diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-29 01:43:20 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-29 01:43:20 +0000 |
commit | 79d387438f1dada6d7e6f916cbf9e914be3a0c3c (patch) | |
tree | 7b698b19bb460137d09987351c395e22ee5cb6ae /usr.sbin/sysinstall/network.c | |
parent | 570995b82cb452800f4827f23ce59bc9dd8cf989 (diff) | |
download | FreeBSD-src-79d387438f1dada6d7e6f916cbf9e914be3a0c3c.zip FreeBSD-src-79d387438f1dada6d7e6f916cbf9e914be3a0c3c.tar.gz |
Make the emergency holographic shell (on VTY4) actually work with job
control and signals and such. Thanks, Gary!
Clean up some miscellaneous bogons for Poul.
Diffstat (limited to 'usr.sbin/sysinstall/network.c')
-rw-r--r-- | usr.sbin/sysinstall/network.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/network.c b/usr.sbin/sysinstall/network.c index db7330d..83e849b 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.2 1995/05/28 03:05:00 jkh Exp $ + * $Id: network.c,v 1.3 1995/05/28 09:31:38 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -139,7 +139,7 @@ configRoutedFlags(char *str) static Boolean startPPP(Device *devp) { - int fd; + int fd, fd2; FILE *fp; char *val; char myaddr[16], provider[16]; @@ -150,8 +150,16 @@ startPPP(Device *devp) Mkdir("/var/log", NULL); Mkdir("/var/spool/lock", NULL); Mkdir("/etc/ppp", NULL); - vsystem("touch /etc/ppp/ppp.linkup; chmod +x /etc/ppp/ppp.linkup"); - vsystem("touch /etc/ppp/ppp.secret; chmod +x /etc/ppp/ppp.secret"); + fd2 = open("/etc/ppp/ppp.linkup", O_CREAT); + if (fd2 != -1) { + fchmod(fd2, 0755); + close(fd2); + } + fd2 = open("/etc/ppp/ppp.secret", O_CREAT); + if (fd2 != -1) { + fchmod(fd2, 0755); + close(fd2); + } fp = fopen("/etc/ppp/ppp.conf", "w"); if (!fp) { msgConfirm("Couldn't open /etc/ppp/ppp.conf file! This isn't going to work"); |