Deleted Added
full compact
pflog (165682) pflog (165683)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/pflog 165682 2006-12-31 10:12:53Z yar $
3# $FreeBSD: head/etc/rc.d/pflog 165683 2006-12-31 10:37:18Z yar $
4#
5
6# PROVIDE: pflog
7# REQUIRE: root mountcritlocal netif cleanvar
8# KEYWORD: nojail
9
10. /etc/rc.subr
11

--- 5 unchanged lines hidden (view full) ---

17stop_postcmd="pflog_poststop"
18extra_commands="reload resync"
19
20# for backward compatibility
21resync_cmd="pflog_resync"
22
23pflog_prestart()
24{
4#
5
6# PROVIDE: pflog
7# REQUIRE: root mountcritlocal netif cleanvar
8# KEYWORD: nojail
9
10. /etc/rc.subr
11

--- 5 unchanged lines hidden (view full) ---

17stop_postcmd="pflog_poststop"
18extra_commands="reload resync"
19
20# for backward compatibility
21resync_cmd="pflog_resync"
22
23pflog_prestart()
24{
25 # load pflog kernel module if needed
26 if ! kldstat -q -m pflog; then
27 if kldload pflog; then
28 info 'pflog module loaded.'
29 else
30 warn 'pflog module failed to load.'
31 return 1
32 fi
33 fi
25 load_kld pflog || return 1
34
35 # set pflog0 interface to up state
36 if ! ifconfig pflog0 up; then
37 warn 'could not bring up pflog0.'
38 return 1
39 fi
40
41 # prepare the command line for pflogd

--- 23 unchanged lines hidden ---
26
27 # set pflog0 interface to up state
28 if ! ifconfig pflog0 up; then
29 warn 'could not bring up pflog0.'
30 return 1
31 fi
32
33 # prepare the command line for pflogd

--- 23 unchanged lines hidden ---