summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-09-24 06:13:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-09-24 06:13:10 +0000
commitd5776799e502c12ec92b3e133cc73f9cc3af2e1b (patch)
treeebb275fbf068943bdde9b435a48fe9f09d44dd56 /distrib/miniroot
parent5f902478aea52d2b901e88536b20a07e9dc0212e (diff)
use cutword instead of sed
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
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() {