aboutsummaryrefslogtreecommitdiffstats
path: root/main/iptables/iptables.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/iptables/iptables.initd')
-rw-r--r--main/iptables/iptables.initd6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/iptables/iptables.initd b/main/iptables/iptables.initd
index 3de25229d..fa10476ce 100644
--- a/main/iptables/iptables.initd
+++ b/main/iptables/iptables.initd
@@ -64,7 +64,7 @@ start() {
ebegin "Loading ${iptables_name} state and starting firewall"
${iptables_bin}-restore ${SAVE_RESTORE_OPTIONS} < "${iptables_save}"
eend $?
- if [ "${IPFORWARD}" = yes ]; then
+ if yesno "${IPFORWARD}"; then
ebegin "Enabling forwarding"
/sbin/sysctl -w ${sysctl_ipfwd}=1 > /dev/null
eend $?
@@ -72,12 +72,12 @@ start() {
}
stop() {
- if [ "${IPFORWARD}" = yes ]; then
+ if yesno "${IPFORWARD}"; then
ebegin "Disabling forwarding"
/sbin/sysctl -w ${sysctl_ipfwd}=0 > /dev/null
eend $?
fi
- if [ "${SAVE_ON_STOP}" = "yes" ] ; then
+ if yesno "${SAVE_ON_STOP}"; then
save || return 1
fi
checkkernel || return 1