summaryrefslogtreecommitdiffstats
path: root/main/iptables/iptables.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/iptables/iptables.initd')
-rw-r--r--[-rwxr-xr-x]main/iptables/iptables.initd12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/iptables/iptables.initd b/main/iptables/iptables.initd
index e63d8ea9e..6054af6e6 100755..100644
--- a/main/iptables/iptables.initd
+++ b/main/iptables/iptables.initd
@@ -1,9 +1,10 @@
#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $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 $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/files/iptables-1.4.11.init,v 1.2 2011/12/04 10:15:59 swegener Exp $
-opts="save reload panic"
+extra_commands="save panic"
+extra_started_commands="reload"
iptables_name=${SVCNAME}
if [ "${iptables_name}" != "iptables" -a "${iptables_name}" != "ip6tables" ] ; then
@@ -21,6 +22,7 @@ esac
depend() {
before net
use logger
+ provides firewall
}
set_table_policy() {
@@ -100,7 +102,9 @@ save() {
panic() {
checkkernel || return 1
- service_started ${iptables_name} && svc_stop
+ if service_started ${iptables_name}; then
+ rc-service ${iptables_name} stop
+ fi
local a
ebegin "Dropping all packets"