Someone
public text v1 · immutablestripcom() {
local _file="$1"
local _line
{
while read _line ; do
_line=${_line%%#*} # strip comments
test -z "$_line" && continue
echo $_line
done
} < $_file
}
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=`stripcom /etc/dhcpd.interfaces`
fi
echo -n ' dhcpd'; echo /usr/sbin/dhcpd ${dhcpd_flags} ${dhcpd_ifs}
fi