Changeset 4358
- Timestamp:
- 04/04/07 21:24:39 (6 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/detect/sensors-detect (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r4355 r4358 11 11 Program sensors-detect: Stop Super-I/O probe after first family success 12 12 Fix SMSC DME1737 detection 13 Add /usr/sbin to the PATH (#2199) 13 14 14 15 -
lm-sensors/trunk/prog/detect/sensors-detect
r4355 r4358 5 5 # Copyright (C) 1998 - 2002 Frodo Looijaard <frodol@dds.nl> 6 6 # Copyright (C) 2000 - 2004 The lm_sensors team 7 # Copyright (C) 2005 - 200 6Jean Delvare <khali@linux-fr.org>7 # Copyright (C) 2005 - 2007 Jean Delvare <khali@linux-fr.org> 8 8 # 9 9 # This program is free software; you can redistribute it and/or modify … … 35 35 use File::Basename; 36 36 37 # Just in case a root user doesn't have /sbin in his/her path for some reason 38 # (was seen once) 39 $ENV{PATH} = '/sbin:'.$ENV{PATH} 40 unless $ENV{PATH} =~ m,(^|:)/sbin/?(:|$),; 41 # Same for /usr/local/sbin since we need i2cdetect which is installed there 42 # by default (reported by Lennard Klein) 43 $ENV{PATH} = '/usr/local/sbin:'.$ENV{PATH} 44 unless $ENV{PATH} =~ m,(^|:)/usr/local/sbin/?(:|$),; 37 # We will call modprobe and i2cdetect, which typically live in either /sbin, 38 # /usr/sbin or /usr/local/bin. So make sure these are all in the PATH. 39 foreach ('/usr/sbin', '/usr/local/sbin', '/sbin') { 40 $ENV{PATH} = "$_:".$ENV{PATH} 41 unless $ENV{PATH} =~ m/(^|:)$_\/?(:|$)/; 42 } 45 43 46 44 #########################
