summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-09-14 15:16:02 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-09-14 15:16:02 +0000
commit021fb2d7505d0caf7f1072a7789938ad416f5ec2 (patch)
tree69abe6db9038066e41a4291e50fa3614027a1a38 /distrib/miniroot
parent7df10535c08fb86783174b571c9932dce7c8e8e9 (diff)
use sed, not cut since not all platforms have cut on the floppy
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 87a7f08b3df..a49a96c920a 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.81 1998/09/12 08:33:57 deraadt Exp $
+# $OpenBSD: install.sub,v 1.82 1998/09/14 15:16:01 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:]])' | cut -f 1 -d :
+ /sbin/ifconfig -a | egrep -v '^([[:space:]]|(lo|enc|ppp|sl|tun)[[:digit:]])' | sed 's/:.*//'
}
dir_has_sets() {