diff options
author | kn <kn@cvs.openbsd.org> | 2018-02-18 01:50:05 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2018-02-18 01:50:05 +0000 |
commit | 1ca71624f12caf2fb15582337e48de6a7ca1c782 (patch) | |
tree | 0eaaf60bbf0e23084e3d51e020cf2b93641babcd /distrib/miniroot | |
parent | e1cb382bba86598cbc9062a9ec65735a04165fa2 (diff) |
Simplify interface listing.
Discussed with tb, rpe, feedback from and OK halex.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sub | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 4cf38bf2546..740064a86a8 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1062 2018/02/18 00:43:16 rpe Exp $ +# $OpenBSD: install.sub,v 1.1063 2018/02/18 01:50:04 kn Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -329,8 +329,7 @@ get_dkdevs_uninitialized() { get_ifs() { local _if _iflist=$(rmel vlan $(ifconfig -C)) - for _if in $(ifconfig "$@" 2>/dev/null | - sed -n 's/^\([^[:space:]]*\):.*/\1/p'); do + for _if in $(ifconfig "$@" 2>/dev/null | sed '/^[a-z]/!d;s/:.*//'); do isin "${_if%%+([0-9])}" $_iflist || echo $_if done } |