summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-04-13 03:45:52 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-04-13 03:45:52 +0000
commitd388a58666ca43a773f6a0c6b283f49fcae4dafe (patch)
tree7f9f3d900ddd6c995dd685f67d10f64ab7d2f934 /distrib
parent3194ae1bfef8ca607395aa7bab9ad1b5e6a3558e (diff)
Tweak set source option testing. Don't offer nfs if no active interface
is found - even if /sbin/mount_nfs is present.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub8
1 files changed, 5 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 9c0f2a8551b..66b8c1161f0 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.380 2005/04/13 03:12:42 deraadt Exp $
+# $OpenBSD: install.sub,v 1.381 2005/04/13 03:45:51 krw Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2005 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1330,8 +1330,10 @@ install_sets() {
local _d=disk _locs=disk
[[ -n $CDDEVS ]] && { _locs="cd $_locs" ; _d=cd ; }
- [[ -n $(ifconfig | grep 'status: active') ]] && _locs="$_locs ftp http"
- [[ -x /sbin/mount_nfs ]] && _locs="$_locs nfs"
+ if [[ -n $(ifconfig | grep 'status: active') ]]; then
+ _locs="$_locs ftp http"
+ [[ -x /sbin/mount_nfs ]] && _locs="$_locs nfs"
+ fi
[[ -n $MTDEVS && -x /bin/mt ]] && _locs="$_locs tape"
echo "\nLet's $MODE the sets!"