Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2010 09:08:01 +0300 (MSK)
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/142817: [patch] etc/rc.d/pf: silence pfctl
Message-ID:  <201001140608.o0E681Nu002661@darklight.org.ru>
Resent-Message-ID: <201001140610.o0E6A2Gs010666@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142817
>Category:       conf
>Synopsis:       [patch] etc/rc.d/pf: silence pfctl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 14 06:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Yuri Pankov
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD darklight.org.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r202144: Tue Jan 12 15:19:51 MSK 2010 yuri@darklight.org.ru:/usr/obj/home/yuri/src/head/sys/DARKLIGHT amd64
>Description:
Cosmetic change. pfctl -e/-d output breaks formatting:
Enabling pfpf enabled
.
>How-To-Repeat:
>Fix:

--- pf.diff begins here ---
Index: etc/rc.d/pf
===================================================================
--- etc/rc.d/pf	(revision 202275)
+++ etc/rc.d/pf	(working copy)
@@ -29,7 +29,7 @@
 	$pf_program -F all > /dev/null 2>&1
 	$pf_program -f "$pf_rules" $pf_flags
 	if ! $pf_program -s info | grep -q "Enabled" ; then
-		$pf_program -e
+		$pf_program -qe
 	fi
 	check_startmsgs && echo '.'
 }
@@ -38,7 +38,7 @@
 {
 	if $pf_program -s info | grep -q "Enabled" ; then
 		echo -n 'Disabling pf'
-		$pf_program -d
+		$pf_program -qd
 		echo '.'
 	fi
 }
--- pf.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001140608.o0E681Nu002661>