diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-10-14 07:34:26 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-10-14 07:34:26 +0000 |
commit | c5b86384008b9674df9bcaffcbc32ebe83f42fdd (patch) | |
tree | f78628c061d646854cbcc26442cf43926cdd960b /etc | |
parent | c8a0a6ac81be088dcb085c5aa184cdc69e7f31a3 (diff) |
use stripcom(), not awk. Spotted by form@.
millert@ ok
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |