summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/tcpip.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-26 21:16:02 +0000
committerjkh <jkh@FreeBSD.org>1995-05-26 21:16:02 +0000
commit7495e5c9eecf10670664e36901035b1a128dd93b (patch)
treeee0257ca10428b2af82591fa7ec8a1b6d507d76a /usr.sbin/sysinstall/tcpip.c
parent9d2760a66b25e78ce51055000567f51bd4f79996 (diff)
downloadFreeBSD-src-7495e5c9eecf10670664e36901035b1a128dd93b.zip
FreeBSD-src-7495e5c9eecf10670664e36901035b1a128dd93b.tar.gz
Fix a few bogons.
Diffstat (limited to 'usr.sbin/sysinstall/tcpip.c')
-rw-r--r--usr.sbin/sysinstall/tcpip.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 2baaf34..e6f7f49 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -1,5 +1,5 @@
/*
- * $Id: tcpip.c,v 1.17 1995/05/26 19:28:06 jkh Exp $
+ * $Id: tcpip.c,v 1.18 1995/05/26 20:31:01 jkh Exp $
*
* Copyright (c) 1995
* Gary J Palmer. All rights reserved.
@@ -468,7 +468,7 @@ tcpStartPPP(Device *devp)
int fd;
FILE *fp;
char *val;
- char myaddr[16];
+ char myaddr[16], provider[16];
char netmask[16];
fd = open("/dev/ttyv2", O_RDWR);
@@ -486,11 +486,16 @@ tcpStartPPP(Device *devp)
}
fprintf(fp, "default:\n");
fprintf(fp, " set device %s\n", devp->devname);
- val = msgGetInput("115200", "Enter baud rate for your modem - this can be higher\nthan the actual maximum data rate since most modems can talk\nat one speed to the host (us) and at another speed to the remote end.\nIf you're not sure what to put here, just select the default.");
+ val = msgGetInput("115200",
+"Enter baud rate for your modem - this can be higher than the actual\nmaximum data rate since most modems can talk at one speed to the\ncomputer and at another speed to the remote end.\n\nIf you're not sure what to put here, just select the default.");
if (!val)
val = "115200";
fprintf(fp, " set speed %s\n", val);
- val = msgGetInput("0", "Enter the IP address of your service provider or 0 if you\ndon't know it and would prefer to negotiate it dynamically.");
+ if (getenv(VAR_GATEWAY))
+ strcpy(provider, getenv(VAR_GATEWAY));
+ else
+ strcpy(provider, "0");
+ val = msgGetInput(provider, "Enter the IP address of your service provider or 0 if you\ndon't know it and would prefer to negotiate it dynamically.");
if (!val)
val = "0";
if (devp->private && ((DevInfo *)devp->private)->ipaddr[0])
OpenPOWER on IntegriCloud