diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 1f6a37d6..c5dfca47 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -115,9 +115,12 @@ function is_pwm_auto() if [ -n "$SYSFS" ] then ENABLE=${1}_enable - if [ -f $ENABLE -a "`cat $ENABLE`" -gt 1 ] + if [ -f $ENABLE ] then - return 0 + if [ "`cat $ENABLE`" -gt 1 ] + then + return 0 + fi fi fi