Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37048298
en ru br
ALT Linux repositórios
S:3.1.7-alt1
5.0: 1.268-alt1.cvs20080809
4.1: 1.226-alt3.cvs20070210
4.0: 1.226-alt1.cvs20070210

Group :: Sistema/Configurações/Rede
RPM: firehol

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: firehol.sh-alt-init.patch
Download


--- firehol/firehol.sh~	2006-06-05 21:47:48 +0400
+++ firehol/firehol.sh	2007-02-11 13:34:26 +0300
@@ -13,6 +13,11 @@
 # $Id: firehol.sh,v 1.249 2006/06/05 17:47:48 ktsaou Exp $
 #
 
+WITHOUT_RC_COMPAT=1
+
+# source function library
+. /etc/init.d/functions
+
 # Make sure only root can run us.
 if [ ! "${UID}" = 0 ]
 then
@@ -5190,20 +5195,8 @@ work_realcmd_helper() {	
 # ------------------------------------------------------------------------------
 
 # ------------------------------------------------------------------------------
-# On non RedHat machines we need success() and failure()
-success() {
-	printf " OK"
-}
-failure() {
-	echo " FAILED"
-}
-
-# ------------------------------------------------------------------------------
 # A small part bellow is copied from /etc/init.d/iptables
 
-# On RedHat systems this will define success() and failure()
-test -f /etc/init.d/functions && . /etc/init.d/functions
-
 if [ -z "${IPTABLES_CMD}" -o ! -x "${IPTABLES_CMD}" ]; then
 	echo >&2 "Cannot find an executables iptables command."
 	exit 0
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009