svn commit: r356943 - head/libexec/rc/rc.d
Eugene Grosbein
eugen at FreeBSD.org
Tue Jan 21 17:02:58 UTC 2020
Author: eugen
Date: Tue Jan 21 17:02:57 2020
New Revision: 356943
URL: https://svnweb.freebsd.org/changeset/base/356943
Log:
Correct "service ipfw status" for INET6-only systems.
MFC after: 1 month
Modified:
head/libexec/rc/rc.d/ipfw
Modified: head/libexec/rc/rc.d/ipfw
==============================================================================
--- head/libexec/rc/rc.d/ipfw Tue Jan 21 16:31:08 2020 (r356942)
+++ head/libexec/rc/rc.d/ipfw Tue Jan 21 17:02:57 2020 (r356943)
@@ -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
More information about the svn-src-head
mailing list