aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2013-06-29 17:51:57 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2013-06-29 17:51:57 (GMT)
commit3ba8aca0896d24b0907e73d423c4cc4c17c1f64d (patch)
tree38afd3ebb12335111b232ca4cdb70c2f1fb3ecfd
parent8fc89366e2bced3c6297c82e6210172c26153339 (diff)
downloadrcdscripts-3ba8aca0896d24b0907e73d423c4cc4c17c1f64d.tar.xz
rcdscripts: lm_sensors /sbin deprecation
-rwxr-xr-xsrc/lm_sensors/sensors.rc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lm_sensors/sensors.rc b/src/lm_sensors/sensors.rc
index 4acde22..58ec196 100755
--- a/src/lm_sensors/sensors.rc
+++ b/src/lm_sensors/sensors.rc
@@ -26,7 +26,7 @@ fi
if [ $WITHSYS == "0" ]; then
# If sensors isn't supported by the kernel, try loading the module...
- [ -e /proc/sys/dev/sensors ] || /sbin/modprobe i2c-proc &>/dev/null
+ [ -e /proc/sys/dev/sensors ] || /usr/bin/modprobe i2c-proc &>/dev/null
# Don't bother if /proc/sensors still doesn't exist, kernel doesn't have support for sensors.
if ! [ -e /proc/sys/dev/sensors ]; then
@@ -35,7 +35,7 @@ if [ $WITHSYS == "0" ]; then
fi
# If sensors was not already running, unload the module...
- [ -e /var/run/daemons/sensors ] || /sbin/modprobe -r i2c-proc &>/dev/null
+ [ -e /var/run/daemons/sensors ] || /usr/bin/modprobe -r i2c-proc &>/dev/null
fi
if [ -e /etc/conf.d/lm_sensors ]; then
@@ -57,7 +57,7 @@ case "$1" in
while [ $i -lt $modules ] ; do
module=$(eval echo '$'MODULE_$i)
# echo starting module __${module}__ #debug
- /sbin/modprobe $module &>/dev/null
+ /usr/bin/modprobe $module &>/dev/null
i=$(expr $i + 1)
done
fi
@@ -82,13 +82,13 @@ case "$1" in
while [ $i -ge 0 ] ; do
module=$(eval echo '$'MODULE_$i)
# echo stoping module __${module}__ #debug
- /sbin/modprobe -r $module &>/dev/null
+ /usr/bin/modprobe -r $module &>/dev/null
i=$(expr $i - 1)
done
fi
if [ $WITHSYS == "0" ]; then
- /sbin/modprobe -r i2c-proc &>/dev/null
+ /usr/bin/modprobe -r i2c-proc &>/dev/null
fi
if [ $? -gt 0 ]; then