summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2018-07-02 20:47:47 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2018-07-02 20:47:47 +0000
commitd42a44fc6d8e96e5a28407cebe0eba9f3060d805 (patch)
treeaaf29c80a31055344b6b05b8b2bc47f97fb26108 /distrib/miniroot
parent2de790e04e1e0ee6b4f7d337c675ef2b84cfbe88 (diff)
Be more precise in the function description and rename _iflist to
_if_list to be consistent with other similar cases.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub10
1 files changed, 5 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 5f640144d94..cbad3528c00 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1075 2018/07/02 20:21:29 rpe Exp $
+# $OpenBSD: install.sub,v 1.1076 2018/07/02 20:47:46 rpe Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -328,13 +328,13 @@ get_dkdevs_uninitialized() {
bsort $_disks
}
-# Return list of network devices. Filter out dynamically created network
-# pseudo-devices except vlan.
+# Return list of all network devices, optionally limited by parameters to
+# ifconfig. Filter out dynamically created network pseudo-devices except vlan.
get_ifs() {
- local _if _iflist=$(rmel vlan $(ifconfig -C))
+ local _if _if_list=$(rmel vlan $(ifconfig -C))
for _if in $(ifconfig "$@" 2>/dev/null | sed '/^[a-z]/!d;s/:.*//'); do
- isin "${_if%%+([0-9])}" $_iflist || echo $_if
+ isin "${_if%%+([0-9])}" $_if_list || echo $_if
done
}