diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-05 21:16:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-05-05 21:16:35 +0000 |
commit | 44547c90fef1cbbca36efc1d906cbd7397859d6f (patch) | |
tree | 15ceb6fc64bb220b03948f5e69c8a1b035e1653f /distrib/miniroot/install.sub | |
parent | 52c5bad5c96f26ae553e5e72ab34a00139dad6d3 (diff) |
count network interfaces as we configure them
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index ea41c2d5d61..01580c4affb 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.526 2009/05/05 21:14:46 deraadt Exp $ +# $OpenBSD: install.sub,v 1.527 2009/05/05 21:16:34 deraadt Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -600,6 +600,7 @@ configure_ifs() { _p=$1 fi + nifs=0 while [[ -n $_IFDEVS ]]; do ask_which "network interface" "do you wish to configure" \ "$_IFDEVS $_vl" "$_p" @@ -662,6 +663,7 @@ configure_ifs() { v6_config $_ifs $_name $_hn [[ -f $_hn ]] && chmod 640 $_hn && _IFDEVS=$(rmel $_ifs $_IFDEVS) + let nifs=nifs+1 _p=done done } |