aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-01-25 14:46:52 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-01-25 14:46:52 +0000
commit051669e8bbcdcd1f9702ded5ca8540c14dfa1c33 (patch)
tree466f2f165cbb948d5cbf554b27fcad03031657c9 /libexec
parente5258cefd281d8581b8c5ac1f13f1d5d90a90796 (diff)
parent9cc711c9ff5e2028cc4518d742404cfcb6636421 (diff)
Notes
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/rc/rc.d/ipfw6
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/rc/rc.d/ipfw b/libexec/rc/rc.d/ipfw
index 64643f0438e22..df14b7eaa0d41 100755
--- a/libexec/rc/rc.d/ipfw
+++ b/libexec/rc/rc.d/ipfw
@@ -127,7 +127,11 @@ ipfw_stop()
ipfw_status()
{
status=$(sysctl -i -n net.inet.ip.fw.enable)
- if [ ${status:-0} -eq 0 ]; then
+ : ${status:=0}
+ if afexists inet6; then
+ status=$((${status} + $(sysctl -i -n net.inet6.ip6.fw.enable)))
+ fi
+ if [ ${status} -eq 0 ]; then
echo "ipfw is not enabled"
exit 1
else