From d5776799e502c12ec92b3e133cc73f9cc3af2e1b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 24 Sep 1998 06:13:10 +0000 Subject: use cutword instead of sed --- distrib/miniroot/install.sub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib') diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index d7717830f07..61b5f8d7327 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.94 1998/09/23 07:22:34 deraadt Exp $ +# $OpenBSD: install.sub,v 1.95 1998/09/24 06:13:09 millert Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -225,7 +225,7 @@ basename () { get_ifdevs() { # return available network devices - /sbin/ifconfig -a | egrep -v '^([[:space:]]|(lo|enc|ppp|sl|tun)[[:digit:]])' | sed 's/:.*//' + /sbin/ifconfig -a | egrep -v '^([[:space:]]|(lo|enc|ppp|sl|tun)[[:digit:]])' | cutword -t: 1` } dir_has_sets() { -- cgit v1.2.3