summaryrefslogtreecommitdiffstats
path: root/main/iptables/iptables.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-19 09:29:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-19 09:48:15 +0000
commit4b33a80ba058c8f3513aa3882d262502a722e24e (patch)
tree719ee95494a1a74dea17842c4178b56875401b85 /main/iptables/iptables.initd
parent0e9d349fbd920a956eea9a741ecb2e44799b93a2 (diff)
downloadaports-4b33a80ba058c8f3513aa3882d262502a722e24e.tar.bz2
aports-4b33a80ba058c8f3513aa3882d262502a722e24e.tar.xz
main/iptables: replace opts in init.d script
ref #943
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"