Don't rely on properly setup linker.hints to figure out that pflog is now

part of the pf module.
While here fix a comment that was c'n'ped from rc.d/pf

PR:		bin/71096 (partly)
Submitted by:	Ville-Pertti Keinonen
MFC after:	2 days
This commit is contained in:
Max Laier 2004-08-31 14:23:51 +00:00
parent 2c098cd60f
commit 9b56caaef4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134575

View file

@ -27,7 +27,7 @@ pflog_prestart()
{
# load pflog kernel module if needed
if ! kldstat -v | grep -q pflog\$; then
if kldload pflog; then
if kldload pf; then
info 'pflog module loaded.'
else
err 1 'pflog module failed to load.'
@ -39,7 +39,7 @@ pflog_prestart()
warn 'pflog: COULD NOT SET UP pflog0'
fi
# check for pf rules
# check for pflogd binary
if [ ! -x "${pflog_program:-/sbin/pflogd}" ]
then
warn 'pflog: NO PFLOGD BINARY FOUND'