From 3915bbd2a1acc58e9031ce6a1e6e2f886bc8e143 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 13 May 1997 03:51:28 +0000 Subject: Need to add ${VERSION} when checking for the existence of sets. We use "route show" not "netstat -r" --- distrib/miniroot/install.sub | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'distrib') diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 3d7e2259585..98b7d3dc201 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.19 1997/05/10 22:19:36 millert Exp $ +# $OpenBSD: install.sub,v 1.20 1997/05/13 03:51:27 millert Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -89,6 +89,8 @@ getresp() { isin() { # test the first argument against the remaining ones, return succes on a match + local _a + _a=$1; shift while [ $# != 0 ]; do if [ "$_a" = "$1" ]; then return 0; fi @@ -176,11 +178,11 @@ dir_has_sets() { _dir=$1; shift for _file in $* do - if [ -f $_dir/${_file}.tar.gz ]; then + if [ -f $_dir/${_file}${VERSION}.tar.gz ]; then return 0 fi # Try for stupid msdos convention - if [ -f $_dir/${_file}.tgz ]; then + if [ -f $_dir/${_file}${VERSION}.tgz ]; then return 0 fi # Special check for kernel @@ -530,11 +532,11 @@ enable_network() { echo "" if [ "X${_resolver_enabled}" = X"TRUE" ]; then - netstat -r + route show echo "" echo "Resolver enabled." else - netstat -rn + route -n show echo "" echo "Resolver not enabled." fi -- cgit v1.2.3