From 4b33a80ba058c8f3513aa3882d262502a722e24e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 19 Jan 2012 09:29:09 +0000 Subject: main/iptables: replace opts in init.d script ref #943 --- main/iptables/iptables.initd | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) mode change 100755 => 100644 main/iptables/iptables.initd (limited to 'main/iptables/iptables.initd') diff --git a/main/iptables/iptables.initd b/main/iptables/iptables.initd old mode 100755 new mode 100644 index e63d8ea9e..6054af6e6 --- 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" -- cgit v1.2.3