| 47 | | if grep -q sysfs /proc/mounts; then |
| 48 | | WITHSYS=1 |
| 49 | | else |
| 50 | | WITHSYS=0 |
| 51 | | fi |
| 52 | | |
| 53 | | if [ $WITHSYS == "0" ]; then |
| 54 | | # If sensors isn't supported by the kernel, try loading the module... |
| 55 | | [ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc >/dev/null 2>&1 |
| 56 | | |
| 57 | | # Don't bother if /proc/sensors still doesn't exist, kernel doesn't have |
| 58 | | # support for sensors. |
| 59 | | if ! [ -e /proc/sys/dev/sensors ]; then |
| 60 | | echo -n "$1 $prog: kernel does not have sensors support" |
| 61 | | echo_failure |
| 62 | | echo |
| 63 | | exit 5 |
| 64 | | fi |
| 65 | | |
| 66 | | # If sensors was not already running, unload the module... |
| 67 | | [ -e /var/lock/subsys/lm_sensors ] || /sbin/modprobe -r i2c-proc >/dev/null 2>&1 |
| 68 | | fi |
| 69 | | |