1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

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
This commit is contained in:
Kristof Provost 2018-03-26 09:36:22 +00:00
parent 18628b74bd
commit b93a1086cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331546

View File

@ -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
}