From 7dc9b474685579cce29a004c3ebcbd5710c4b5e1 Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 31 Aug 1998 09:02:03 +0000 Subject: Accept gateway value of NO --- usr.sbin/sysinstall/tcpip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/sysinstall/tcpip.c') diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index a78bc85..5a862f2 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.71 1997/09/17 13:33:14 jkh Exp $ + * $Id: tcpip.c,v 1.72 1997/09/17 16:18:22 pst Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -132,7 +132,7 @@ verifySettings(void) { if (!hostname[0]) feepout("Must specify a host name of some sort!"); - else if (gateway[0] && !verifyIP(gateway)) + else if (gateway[0] && strcmp(gateway, "NO") && !verifyIP(gateway)) feepout("Invalid gateway IP address specified"); else if (nameserver[0] && !verifyIP(nameserver)) feepout("Invalid name server IP address specified"); -- cgit v1.1