Author: kp
Date: Mon Apr 16 16:02:54 2018
New Revision: 332591
URL: https://svnweb.freebsd.org/changeset/base/332591

Log:
  MFC r331546:
  
  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.

Modified:
  stable/10/etc/rc.d/pf
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/etc/rc.d/pf
==============================================================================
--- stable/10/etc/rc.d/pf       Mon Apr 16 16:02:09 2018        (r332590)
+++ stable/10/etc/rc.d/pf       Mon Apr 16 16:02:54 2018        (r332591)
@@ -52,12 +52,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
 }
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to