From 0b9cacac80b06c5be54f8f0d03ae123038a324bd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 23 Feb 2012 14:02:05 +0000 Subject: main/iptables: use yesno see man runscript --- main/iptables/iptables.initd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/iptables/iptables.initd') 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 -- cgit v1.2.3