conf/142817: [patch] etc/rc.d/pf: silence pfctl

Yuri Pankov yuri.pankov at gmail.com
Thu Jan 14 06:10:03 UTC 2010


>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 at 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:


More information about the freebsd-bugs mailing list