libexec/rc/rc.d/ipfw: style fix after r356943
Also, make sure it does not break for systems without ipfw code loaded. MFC after: 1 months X-MFC-with: 356943
This commit is contained in:
@@ -127,10 +127,11 @@ ipfw_stop()
|
||||
ipfw_status()
|
||||
{
|
||||
status=$(sysctl -i -n net.inet.ip.fw.enable)
|
||||
: ${status:=0}
|
||||
if afexists inet6; then
|
||||
status=$(( $status + $(sysctl -i -n net.inet6.ip6.fw.enable) ))
|
||||
status=$((${status} + $(sysctl -i -n net.inet6.ip6.fw.enable)))
|
||||
fi
|
||||
if [ ${status:-0} -eq 0 ]; then
|
||||
if [ ${status} -eq 0 ]; then
|
||||
echo "ipfw is not enabled"
|
||||
exit 1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user