Correct "service ipfw status" for INET6-only systems.
MFC after: 1 month
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user