Update vt1211_pwm

replaced deprecated sub shell syntax

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
jschwender authored and Guenter Roeck committed 2018-03-11 09:45:03 -07:00
1 parent 3daae37d58
commit 2d236fbb96
1 file changed
+2 -2
+2 -2
View File
@@ -49,7 +49,7 @@ function set_attr
}
# 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."
exit 1
fi
@@ -83,7 +83,7 @@ done
[ $val -lt 0 -o $val -gt 255 ] && usage
# check hwmon device
dev=`ls -d /sys/devices/platform/vt1211.*`
dev=$(ls -d /sys/devices/platform/vt1211.*)
if [ -z "$dev" ] ; then
echo "Platform device vt1211 not found. Did you load the vt1211 module?"
exit 1