aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2008-03-08 19:22:48 +0200
committerRoman Kyrylych <roman@archlinux.org>2008-03-08 19:37:00 +0200
commit45e331302268490cfb532ea6fe827cba1351ec5b (patch)
treeb251a1c3f79ae581e3ab9513f6fd4585a91808f3 /functions
parent6214a05ea023b8bc3014d8032af18b2404276d00 (diff)
downloadinitscripts-45e331302268490cfb532ea6fe827cba1351ec5b.tar.xz
Use full path to binaries everywhere
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions12
1 files changed, 6 insertions, 6 deletions
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