mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
Update vt1211_pwm
replaced deprecated sub shell syntax Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
1 parent
3daae37d58
commit
2d236fbb96
1 file changed
+2
-2
+2
-2
@@ -49,7 +49,7 @@ function set_attr
|
|||||||
}
|
}
|
||||||
|
|
||||||
# check if we have the right permissions to run
|
# check if we have the right permissions to run
|
||||||
if [ `whoami` != "root" ] ; then
|
if [ $(whoami) != "root" ] ; then
|
||||||
echo "You must be root to run this script."
|
echo "You must be root to run this script."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -83,7 +83,7 @@ done
|
|||||||
[ $val -lt 0 -o $val -gt 255 ] && usage
|
[ $val -lt 0 -o $val -gt 255 ] && usage
|
||||||
|
|
||||||
# check hwmon device
|
# check hwmon device
|
||||||
dev=`ls -d /sys/devices/platform/vt1211.*`
|
dev=$(ls -d /sys/devices/platform/vt1211.*)
|
||||||
if [ -z "$dev" ] ; then
|
if [ -z "$dev" ] ; then
|
||||||
echo "Platform device vt1211 not found. Did you load the vt1211 module?"
|
echo "Platform device vt1211 not found. Did you load the vt1211 module?"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in new issue
Block a user