From 8fdde019ada76e1a9e88d11b36c60ca95a38362d Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Mon, 29 May 1995 11:01:42 +0000 Subject: Sync up my work for the night. This should implement ALL possible installation methods and provide a fairly robust set of menu options. This should also fix a few more bugs on Poul-Henning's latest gripe list. --- release/sysinstall/network.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'release/sysinstall/network.c') diff --git a/release/sysinstall/network.c b/release/sysinstall/network.c index 83e849bec945..2258162be746 100644 --- a/release/sysinstall/network.c +++ b/release/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.3 1995/05/28 09:31:38 jkh Exp $ + * $Id: network.c,v 1.4 1995/05/29 01:43:20 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -47,6 +47,7 @@ #include "sysinstall.h" #include +#include static Boolean networkInitialized; static Boolean startPPP(Device *devp); @@ -68,8 +69,22 @@ mediaInitNetwork(Device *dev) return FALSE; } } - else - msgConfirm("Warning: SLIP is rather poorly supported in this revision\nof the installation due to the lack of a dialing utility.\nIf you can use PPP for this instead then you're much better\noff doing so, otherwise SLIP works fairly well for *hardwired*\nlinks. Use the shell on the 4TH screen (ALT-F4) to run slattach\nand otherwise set the link up, then hit return here to continue."); + else { + char *val; + char attach[256]; + + /* Cheesy slip attach */ + snprintf(attach, 256, "slattach -a -h -l -s 9600 %s", dev->devname); + val = msgGetInput(attach, "Warning: SLIP is rather poorly supported in this revision\nof the installation due to the lack of a dialing utility.\nIf you can use PPP for this instead then you're much better\noff doing so, otherwise SLIP works fairly well for *hardwired*\nlinks. Please edit the following slattach command for\ncorrectness (default here is VJ compression, Hardware flow-control,\nignore carrier and 9600 baud data rate) and hit return to execute it."); + if (!val) + return FALSE; + else if (!vsystem(attach)) + return TRUE; + else { + msgConfirm("slattach returned a bad status! Please verify that\nthe command is correct and try again."); + return FALSE; + } + } } else { char *cp, ifconfig[64]; -- cgit v1.3