Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2018 09:36:22 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331546 - head/etc/rc.d
Message-ID:  <201803260936.w2Q9aMfD082758@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Mon Mar 26 09:36:22 2018
New Revision: 331546
URL: https://svnweb.freebsd.org/changeset/base/331546

Log:
  pf: reload and resync do the same thing
  
  The reload and resync commands for the startup script do exactly the same
  thing, so implement one as a call to the other.
  
  MFC after:	3 weeks

Modified:
  head/etc/rc.d/pf

Modified: head/etc/rc.d/pf
==============================================================================
--- head/etc/rc.d/pf	Mon Mar 26 09:07:16 2018	(r331545)
+++ head/etc/rc.d/pf	Mon Mar 26 09:36:22 2018	(r331546)
@@ -53,12 +53,12 @@ pf_check()
 pf_reload()
 {
 	echo "Reloading pf rules."
-	$pf_program -n -f "$pf_rules" $pf_flags || return 1
-	$pf_program -f "$pf_rules" $pf_flags
+	pf_resync
 }
 
 pf_resync()
 {
+	$pf_program -n -f "$pf_rules" $pf_flags || return 1
 	$pf_program -f "$pf_rules" $pf_flags
 }
 



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