svn commit: r297315 - head/etc/rc.d

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Sun Mar 27 19:46:38 UTC 2016


> On Mar 27, 2016, at 10:22, Kristof Provost <kp at FreeBSD.org> wrote:
> 
> Author: kp
> Date: Sun Mar 27 17:22:27 2016
> New Revision: 297315
> URL: https://svnweb.freebsd.org/changeset/base/297315

…

> Modified: head/etc/rc.d/pf
> ==============================================================================
> --- head/etc/rc.d/pf	Sun Mar 27 16:27:49 2016	(r297314)
> +++ head/etc/rc.d/pf	Sun Mar 27 17:22:27 2016	(r297315)
> @@ -66,7 +66,11 @@ pf_resync()
> 
> pf_status()
> {
> -	$pf_program -s info
> +	if ! [ -c /dev/pf ] ; then
> +		echo "pf.ko is not loaded"
> +	else
> +		$pf_program -s info
> +	fi

This might be better:

load_kld pf || return 1
$pf_program -s info


More information about the svn-src-all mailing list