Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 198907
Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +11 lines)
Line  Link Here
0
-- iptables-1.3.2.init 2007-03-12 15:05:59.000000000 -0700
0
++ /etc/init.d/iptables        2008-08-19 11:48:30.000000000 -0700
Lines 3-9 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.3.2.init,v 1.6 2007/03/12 21:49:04 vapier Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.3.2.init,v 1.6 2007/03/12 21:49:04 vapier Exp $
5
5
6
opts="save reload panic"
6
opts="save reload panic check"
7
7
8
iptables_name=${SVCNAME}
8
iptables_name=${SVCNAME}
9
if [ "${iptables_name}" != "iptables" -a "${iptables_name}" != "ip6tables" ] ; then
9
if [ "${iptables_name}" != "iptables" -a "${iptables_name}" != "ip6tables" ] ; then
Lines 64-69 Link Here
64
stop() {
64
stop() {
65
       if [ "${SAVE_ON_STOP}" = "yes" ] ; then
65
       if [ "${SAVE_ON_STOP}" = "yes" ] ; then
66
               save || return 1
66
               save || return 1
67
67
       fi
68
       fi
68
       checkkernel || return 1
69
       checkkernel || return 1
69
       ebegin "Stopping firewall"
70
       ebegin "Stopping firewall"
Lines 79-84 Link Here
79
80
80
reload() {
81
reload() {
81
       checkkernel || return 1
82
       checkkernel || return 1
83
       check || return 1
82
       ebegin "Flushing firewall"
84
       ebegin "Flushing firewall"
83
       local a
85
       local a
84
       for a in $(cat ${iptables_proc}) ; do
86
       for a in $(cat ${iptables_proc}) ; do
Lines 112-114 Link Here
112
       done
114
       done
113
       eend $?
115
       eend $?
114
}
116
}
117
118
check() {
119
       checkkernel || return 1
120
       ebegin "Checking rules"
121
        ${iptables_bin}-restore --test ${SAVE_RESTORE_OPTIONS} < "${iptables_save}"
122
        eend $?
123
}

Return to bug 198907