Unbreak the ipfilter_loaded function. There doesn't seem to be a way

for kldstat to ever print "IP Filter" (the module is called "ipfilter"
and modules don't have anything like a description), so this function
would always return false. That would cause prestart to attempt to
load the module even if it's already loaded, which would fail and
prevent the rules from being loaded.

Approved by:	re (dwhite)
This commit is contained in:
Dima Dorfman 2005-06-21 09:39:09 +00:00
parent 54bad7c6c2
commit b5f6d74386

View File

@ -29,7 +29,7 @@ extra_commands="reload resync status"
ipfilter_loaded()
{
if ! kldstat -v | grep "IP Filter" > /dev/null 2>&1; then
if ! kldstat -v | grep "ipfilter$" > /dev/null 2>&1; then
return 1
else
return 0