summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/pflog
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-09-24 15:57:17 +0000
committerpjd <pjd@FreeBSD.org>2005-09-24 15:57:17 +0000
commit264e350e934b944f88622c1cd9817a70f21572e1 (patch)
treeb95700074e69432e5614ffdcfd868050299bf97b /etc/rc.d/pflog
parent479d185b1e0a377b3a32108f340adf8a0ee581af (diff)
downloadFreeBSD-src-264e350e934b944f88622c1cd9817a70f21572e1.zip
FreeBSD-src-264e350e934b944f88622c1cd9817a70f21572e1.tar.gz
Simplify the code by making use of 'kldstat -q -m <mod>'.
No objections from: mlaier
Diffstat (limited to 'etc/rc.d/pflog')
-rw-r--r--etc/rc.d/pflog2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/pflog b/etc/rc.d/pflog
index 4adbdfc..859bde7 100644
--- a/etc/rc.d/pflog
+++ b/etc/rc.d/pflog
@@ -26,7 +26,7 @@ extra_commands="resync status"
pflog_prestart()
{
# load pflog kernel module if needed
- if ! kldstat -v | grep -q pflog\$; then
+ if ! kldstat -q -m pflog; then
if kldload pf; then
info 'pflog module loaded.'
else
OpenPOWER on IntegriCloud