diff options
author | dd <dd@FreeBSD.org> | 2005-06-21 09:39:09 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2005-06-21 09:39:09 +0000 |
commit | 570bbf677fe0cd60e76bbb14d7fbf209efbef365 (patch) | |
tree | 624e816b237c0bd05be1313fdfd68c1df08a4d48 /etc/rc.d | |
parent | dd97723e4f2762453306dd436056f3ddc16ba7bd (diff) | |
download | FreeBSD-src-570bbf677fe0cd60e76bbb14d7fbf209efbef365.zip FreeBSD-src-570bbf677fe0cd60e76bbb14d7fbf209efbef365.tar.gz |
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)
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/ipfilter | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/ipfilter b/etc/rc.d/ipfilter index 4fb17fc..170dc85 100755 --- a/etc/rc.d/ipfilter +++ b/etc/rc.d/ipfilter @@ -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 |