From 45e331302268490cfb532ea6fe827cba1351ec5b Mon Sep 17 00:00:00 2001 From: Roman Kyrylych Date: Sat, 8 Mar 2008 19:22:48 +0200 Subject: Use full path to binaries everywhere Signed-off-by: Roman Kyrylych --- functions | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 38c633c..bbc773c 100644 --- a/functions +++ b/functions @@ -4,7 +4,7 @@ # width: -STAT_COL=$(stty size) +STAT_COL=$(/bin/stty size) # strip the rows number, we just want columns STAT_COL=${STAT_COL##* } if [ "$STAT_COL" = "0" ]; then @@ -19,7 +19,7 @@ fi STAT_COL=$(($STAT_COL - 13)) # disable colors on broken terminals -TERM_COLORS="$(tput colors 2>/dev/null)" +TERM_COLORS="$(/bin/tput colors 2>/dev/null)" if [ $? = 3 ]; then TERM_COLORS=8 elif [ -n "${TERM_COLORS}" ]; then @@ -130,12 +130,12 @@ status() { # daemons: add_daemon() { - [ -d /var/run/daemons ] || mkdir -p /var/run/daemons - touch /var/run/daemons/$1 + [ -d /var/run/daemons ] || /bin/mkdir -p /var/run/daemons + /bin/touch /var/run/daemons/$1 } rm_daemon() { - rm -f /var/run/daemons/$1 + /bin/rm -f /var/run/daemons/$1 } ck_daemon() { @@ -145,7 +145,7 @@ ck_daemon() { source_functions() { if [ -d /etc/rc.d/functions.d/ ]; then - for f in $(ls /etc/rc.d/functions.d/); do + for f in $(/bin/ls /etc/rc.d/functions.d/); do . /etc/rc.d/functions.d/$f done fi -- cgit v1.2.3