summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-07-05 15:27:39 +0000
committermtm <mtm@FreeBSD.org>2008-07-05 15:27:39 +0000
commit0087e14c9d28c9e717db61a2ac5ddf85282ac346 (patch)
tree1c29f5c2a1a8de88c897e268fc0b865e7fceb3d3
parent9308cac661951d0ee60936aaf02d655cb0846af2 (diff)
downloadFreeBSD-src-0087e14c9d28c9e717db61a2ac5ddf85282ac346.zip
FreeBSD-src-0087e14c9d28c9e717db61a2ac5ddf85282ac346.tar.gz
No need to display the result of enabling the ipfw sysctl if it's
successfull. Issue a warning if it fails, however.
-rw-r--r--etc/rc.d/ipfw4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw
index 0af77d8..44af170 100644
--- a/etc/rc.d/ipfw
+++ b/etc/rc.d/ipfw
@@ -51,7 +51,9 @@ ipfw_start()
# Enable the firewall
#
- ${SYSCTL_W} net.inet.ip.fw.enable=1
+ if ! ${SYSCTL_W} net.inet.ip.fw.enable=1 1>/dev/null 2>&1; then
+ warn "failed to enable firewall"
+ fi
}
ipfw_stop()
OpenPOWER on IntegriCloud