network.c (8828) | network.c (8837) |
---|---|
1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated to essentially a complete rewrite. 6 * | 1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last attempt in the `sysinstall' line, the next 5 * generation being slated to essentially a complete rewrite. 6 * |
7 * $Id: network.c,v 1.3 1995/05/28 09:31:38 jkh Exp $ | 7 * $Id: network.c,v 1.4 1995/05/29 01:43:20 jkh Exp $ |
8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * Copyright (c) 1995 12 * Gary J Palmer. All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without 15 * modification, are permitted provided that the following conditions --- 26 unchanged lines hidden (view full) --- 42 * SUCH DAMAGE. 43 * 44 */ 45 46/* These routines deal with getting things off of network media */ 47 48#include "sysinstall.h" 49#include <sys/fcntl.h> | 8 * 9 * Copyright (c) 1995 10 * Jordan Hubbard. All rights reserved. 11 * Copyright (c) 1995 12 * Gary J Palmer. All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without 15 * modification, are permitted provided that the following conditions --- 26 unchanged lines hidden (view full) --- 42 * SUCH DAMAGE. 43 * 44 */ 45 46/* These routines deal with getting things off of network media */ 47 48#include "sysinstall.h" 49#include <sys/fcntl.h> |
50#include <sys/stat.h> |
|
50 51static Boolean networkInitialized; 52static Boolean startPPP(Device *devp); 53 54Boolean 55mediaInitNetwork(Device *dev) 56{ 57 int i; --- 5 unchanged lines hidden (view full) --- 63 configResolv(); 64 if (!strncmp("cuaa", dev->name, 4)) { 65 if (!msgYesNo("You have selected a serial-line network interface.\nDo you want to use PPP with it?")) { 66 if (!startPPP(dev)) { 67 msgConfirm("Unable to start PPP! This installation method\ncannot be used."); 68 return FALSE; 69 } 70 } | 51 52static Boolean networkInitialized; 53static Boolean startPPP(Device *devp); 54 55Boolean 56mediaInitNetwork(Device *dev) 57{ 58 int i; --- 5 unchanged lines hidden (view full) --- 64 configResolv(); 65 if (!strncmp("cuaa", dev->name, 4)) { 66 if (!msgYesNo("You have selected a serial-line network interface.\nDo you want to use PPP with it?")) { 67 if (!startPPP(dev)) { 68 msgConfirm("Unable to start PPP! This installation method\ncannot be used."); 69 return FALSE; 70 } 71 } |
71 else 72 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."); | 72 else { 73 char *val; 74 char attach[256]; 75 76 /* Cheesy slip attach */ 77 snprintf(attach, 256, "slattach -a -h -l -s 9600 %s", dev->devname); 78 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."); 79 if (!val) 80 return FALSE; 81 else if (!vsystem(attach)) 82 return TRUE; 83 else { 84 msgConfirm("slattach returned a bad status! Please verify that\nthe command is correct and try again."); 85 return FALSE; 86 } 87 } |
73 } 74 else { 75 char *cp, ifconfig[64]; 76 77 snprintf(ifconfig, 64, "%s%s", VAR_IFCONFIG, dev->name); 78 cp = getenv(ifconfig); 79 if (!cp) { 80 msgConfirm("The %s device is not configured. You will need to do so\nin the Networking configuration menu before proceeding."); --- 117 unchanged lines hidden --- | 88 } 89 else { 90 char *cp, ifconfig[64]; 91 92 snprintf(ifconfig, 64, "%s%s", VAR_IFCONFIG, dev->name); 93 cp = getenv(ifconfig); 94 if (!cp) { 95 msgConfirm("The %s device is not configured. You will need to do so\nin the Networking configuration menu before proceeding."); --- 117 unchanged lines hidden --- |