2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Ensure /usr/local/sbin is in runner's path.

Fix /sbin too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2227 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-01-18 07:26:37 +00:00
parent 75cc3716de
commit f86e3d4aa7

View File

@@ -33,8 +33,12 @@ use POSIX;
# Just in case a root user doesn't have /sbin in his/her path for some reason
# (was seen once)
$ENV{PATH} .= '/sbin:'
$ENV{PATH} = '/sbin:'.$ENV{PATH}
unless $ENV{PATH} =~ m,(^|:)/sbin/?(:|$),;
# Same for /usr/local/sbin since we need i2cdetect which is installed there
# by default (reported by Lennard Klein)
$ENV{PATH} = '/usr/local/sbin:'.$ENV{PATH}
unless $ENV{PATH} =~ m,(^|:)/usr/local/sbin/?(:|$),;
#########################
# CONSTANT DECLARATIONS #