aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2018-06-07 13:16:53 +0000
committerKristof Provost <kp@FreeBSD.org>2018-06-07 13:16:53 +0000
commitaf9f0aa4306901d5e34afc56e61d255142523583 (patch)
tree1a9293210f03c33f4b15bc7f95c573f74b81b77b /etc/rc.d
parent42faa80be3306ceb02ac73d95a56326bb4caa9af (diff)
Notes
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/ipfw4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw
index 05cdb4178d59..e0c46f8ef925 100755
--- a/etc/rc.d/ipfw
+++ b/etc/rc.d/ipfw
@@ -117,8 +117,8 @@ ipfw_stop()
ipfw_status()
{
- status=$(sysctl -n net.inet.ip.fw.enable)
- if [ ${status} -eq 0 ]; then
+ status=$(sysctl -i -n net.inet.ip.fw.enable)
+ if [ ${status:-0} -eq 0 ]; then
echo "ipfw is not enabled"
exit 1
else