summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/ipfw
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2002-10-12 10:31:31 +0000
committerschweikh <schweikh@FreeBSD.org>2002-10-12 10:31:31 +0000
commitb7d872536535fe8afd8ad5080a504fa41a77c095 (patch)
treec750ff3f496fe6079fff457037e64eba1f20e162 /etc/rc.d/ipfw
parentc60d03847fad771361b5a5590015bfe65a1b3023 (diff)
downloadFreeBSD-src-b7d872536535fe8afd8ad5080a504fa41a77c095.zip
FreeBSD-src-b7d872536535fe8afd8ad5080a504fa41a77c095.tar.gz
Fix style bugs:
* Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line. Approved by: silence from gordon
Diffstat (limited to 'etc/rc.d/ipfw')
-rw-r--r--etc/rc.d/ipfw8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw
index 92c88e9..0c4d85c 100644
--- a/etc/rc.d/ipfw
+++ b/etc/rc.d/ipfw
@@ -18,8 +18,8 @@ stop_cmd="${SYSCTL_W} net.inet.ip.fw.enable=0"
ipfw_precmd()
{
- if ! ${SYSCTL} net.inet.ip.fw.enable > /dev/null 2>&1 ; then
- if ! kldload ipfw ; then
+ if ! ${SYSCTL} net.inet.ip.fw.enable > /dev/null 2>&1; then
+ if ! kldload ipfw; then
warn unable to load firewall module.
return 1
fi
@@ -39,10 +39,10 @@ ipfw_start()
# Network Address Translation daemon
#
- if checkyesno natd_enable ; then
+ if checkyesno natd_enable; then
if [ -n "${natd_interface}" ]; then
if echo ${natd_interface} | \
- grep -q -E '^[0-9]+(\.[0-9]+){0,3}$'; then
+ grep -q -E '^[0-9]+(\.[0-9]+){0,3}$'; then
natd_flags="$natd_flags -a ${natd_interface}"
else
natd_flags="$natd_flags -n ${natd_interface}"
OpenPOWER on IntegriCloud