--- 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