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:
parent
54bad7c6c2
commit
b5f6d74386
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user