Do not start npf again at reboot (it is started via npf_boot)

This commit is contained in:
leot 2019-04-19 18:36:25 +00:00
parent ae2c9082f9
commit 39ae4dd0ba
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: npf,v 1.3 2012/11/01 06:06:14 mrg Exp $
# $NetBSD: npf,v 1.4 2019/04/19 18:36:25 leot Exp $
#
# Public Domain.
#
@ -36,7 +36,11 @@ npf_start()
echo "Enabling NPF."
npf_cfg_check
/sbin/npfctl reload
/sbin/npfctl start
# The npf_boot script has enabled npf already.
if [ "$autoboot" != "yes" ]; then
/sbin/npfctl start
fi
}
npf_stop()