summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-10-14 07:34:26 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-10-14 07:34:26 +0000
commitc5b86384008b9674df9bcaffcbc32ebe83f42fdd (patch)
treef78628c061d646854cbcc26442cf43926cdd960b /etc
parentc8a0a6ac81be088dcb085c5aa184cdc69e7f31a3 (diff)
use stripcom(), not awk. Spotted by form@.
millert@ ok
Diffstat (limited to 'etc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index a0401c29561..25caa0e87f8 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.206 2002/10/06 19:09:20 krw Exp $
+# $OpenBSD: rc,v 1.207 2002/10/14 07:34:25 mpech Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -442,7 +442,7 @@ fi
if [ "X${dhcpd_flags}" != X"NO" -a -f /etc/dhcpd.conf ]; then
touch /var/db/dhcpd.leases
if [ -f /etc/dhcpd.interfaces ]; then
- dhcpd_ifs=`awk -F\# '{ print $1; }' < /etc/dhcpd.interfaces`
+ dhcpd_ifs=`stripcom /etc/dhcpd.interfaces`
fi
echo -n ' dhcpd'; /usr/sbin/dhcpd ${dhcpd_flags} ${dhcpd_ifs}
fi