Browse Source

use stripcom(), not awk. Spotted by form@.

millert@ ok
OPENBSD_3_3
mpech 22 years ago
parent
commit
38e6fe8696
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc

+ 2
- 2
src/etc/rc View File

@ -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 # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -442,7 +442,7 @@ fi
if [ "X${dhcpd_flags}" != X"NO" -a -f /etc/dhcpd.conf ]; then if [ "X${dhcpd_flags}" != X"NO" -a -f /etc/dhcpd.conf ]; then
touch /var/db/dhcpd.leases touch /var/db/dhcpd.leases
if [ -f /etc/dhcpd.interfaces ]; then if [ -f /etc/dhcpd.interfaces ]; then
dhcpd_ifs=`awk -F\# '{ print $1; }' < /etc/dhcpd.interfaces`
dhcpd_ifs=`stripcom /etc/dhcpd.interfaces`
fi fi
echo -n ' dhcpd'; /usr/sbin/dhcpd ${dhcpd_flags} ${dhcpd_ifs} echo -n ' dhcpd'; /usr/sbin/dhcpd ${dhcpd_flags} ${dhcpd_ifs}
fi fi


Loading…
Cancel
Save