aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2020-01-21 17:02:57 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2020-01-21 17:02:57 +0000
commit7d82194866aa011fad5a0504eaa744ef55acc7e8 (patch)
tree489c5518d65855b157bdd55c4fb382bc57713272 /libexec
parentb02706324a4426f636f7369c990d09f7129fb864 (diff)
Notes
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/rc/rc.d/ipfw3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/ipfw b/libexec/rc/rc.d/ipfw
index 64643f0438e2..ef8ce796b41e 100755
--- a/libexec/rc/rc.d/ipfw
+++ b/libexec/rc/rc.d/ipfw
@@ -127,6 +127,9 @@ ipfw_stop()
ipfw_status()
{
status=$(sysctl -i -n net.inet.ip.fw.enable)
+ if afexists inet6; then
+ status=$(( $status + $(sysctl -i -n net.inet6.ip6.fw.enable) ))
+ fi
if [ ${status:-0} -eq 0 ]; then
echo "ipfw is not enabled"
exit 1