From ad1713018daa1905908c7e26bfa976eff3a8459f Mon Sep 17 00:00:00 2001 From: "Kurt J. Bosch" Date: Sat, 25 Jun 2011 12:02:01 +0200 Subject: Move export PATH into functions Also sanitze the PATH for rc.single, rc.multi, rc.local and daemons. --- functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'functions') 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 -- cgit v1.2.3