X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rc.d%2Finit.d%2Ffunctions;h=315f7a2396896868d53c3df571404b9ee2e1986b;hb=de1fc6ce3dfbdc3597e945f8ac82e2680d9b7cd6;hp=566d2ca251bfc7ffd59ddf46e9eeb447ed6e8925;hpb=ea822d66ce00778e6582ceb3d6d3e5c7f2a3e9a4;p=projects%2Frc-scripts.git diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 566d2ca2..315f7a23 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -1,7 +1,7 @@ # functions This file contains functions to be used by most or all # shell scripts in the /etc/init.d directory. # -# $Id: functions,v 1.63 2001/05/13 17:10:17 baggins Exp $ +# $Id: functions,v 1.64 2001/05/15 16:03:38 baggins Exp $ # # Author: Miquel van Smoorenburg, # Hacked by: Greg Galloway and Marc Ewing @@ -17,7 +17,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" INIT_COL=67 # Source configuration if available - may override default values -[ -f /etc/sysconfig/system ] && . /etc/sysconfig/system +[ -r /etc/sysconfig/system ] && . /etc/sysconfig/system [ -z "$COLUMNS" ] && COLUMNS=80 @@ -228,8 +228,7 @@ run_cmd() # A function to start a program (now it's usefull on read-only filesystem too) daemon() { - typeset nicelevel exit_code errors prog - typeset -i nicelevel=0 + typeset errors="" prog="" typeset -i exit_code=0 [ -z "$DEFAULT_SERVICE_RUN_NICE_LEVEL" ] && DEFAULT_SERVICE_RUN_NICE_LEVEL=0 # Test syntax. Don't use -o instead || here - this will broke ksh --misiek @@ -571,7 +570,7 @@ action () { STRING=$1; shift; run_cmd "$STRING" "$*"; } success () { return 0; } failure () { return 1; } -# Will be removed in the future +# TO BE REMOVED SOON. --misiek msg_Network_Down () { msg_network_down "$*"; } msg_Already_Running () { msg_already_running "$*"; } msg_Not_Running () { msg_not_running "$*"; }