blob: 372129540ee2f47b6cdbd2b6e6639382e9a6a67c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
#
# $OpenBSD: pflogd,v 1.2 2011/07/08 21:42:52 robert Exp $
daemon="/sbin/pflogd"
. /etc/rc.d/rc.subr
pexp="pflogd: \[priv\]"
rc_pre() {
if pfctl -si | grep -q Enabled; then
ifconfig pflog0 create
if ifconfig pflog0; then
ifconfig pflog0 up
else
return 1
fi
else
return 1
fi
}
rc_cmd $1
|