aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-25 12:02:01 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-28 15:39:42 +0200
commitad1713018daa1905908c7e26bfa976eff3a8459f (patch)
tree8d74287dcd6d1e0b7ef3a5a59ca575333be769c3 /functions
parente408a6177eadc6db5f64333cb6fb34c533f7f230 (diff)
downloadinitscripts-ad1713018daa1905908c7e26bfa976eff3a8459f.tar.xz
Move export PATH into functions
Also sanitze the PATH for rc.single, rc.multi, rc.local and daemons.
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions b/functions
index 2eb4f72..bcc97c1 100644
--- a/functions
+++ b/functions
@@ -2,7 +2,8 @@
# initscripts functions
#
-# width:
+# sanitize PATH (will be overridden later when /etc/profile is sourced, but is useful for UDev)
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
if [[ $1 == "start" ]]; then
if [[ $STARTING ]]; then
@@ -12,6 +13,7 @@ if [[ $1 == "start" ]]; then
fi
fi
+# width:
calc_columns () {
STAT_COL=80
if [[ ! -t 1 ]]; then