diff options
author | Artem Egorenkov <aegorenkov.91@gmail.com> | 2020-12-02 15:50:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 15:50:49 +0100 |
commit | 58da1037149bf7146d821656626d8cb205cb6aef (patch) | |
tree | 84299611aba7139a62afa78b509428113bea6160 | |
parent | c0a40c79d9db3603b0af925993a74940df6b9f06 (diff) | |
parent | af6bb037ef69bd3b9d8ce72f87e9a5e38294757d (diff) | |
download | lm-sensors-git-58da1037149bf7146d821656626d8cb205cb6aef.tar.gz |
Merge pull request #290 from pzahemszky/2020-11-14-fancontrol
Improve some error messages of fancontrol
-rwxr-xr-x | prog/pwm/fancontrol | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/prog/pwm/fancontrol b/prog/pwm/fancontrol index 44fdd116..886a7367 100755 --- a/prog/pwm/fancontrol +++ b/prog/pwm/fancontrol @@ -287,7 +287,7 @@ function CheckFiles pwmo=${AFCPWM[$fcvcount]} if [ ! -w $pwmo ] then - echo "Error: file $pwmo doesn't exist" >&2 + echo "Error: file $pwmo doesn't exist or isn't writable" >&2 outdated=1 fi let fcvcount=$fcvcount+1 @@ -299,7 +299,7 @@ function CheckFiles tsen=${AFCTEMP[$fcvcount]} if [ ! -r $tsen ] then - echo "Error: file $tsen doesn't exist" >&2 + echo "Error: file $tsen doesn't exist or isn't readable" >&2 outdated=1 fi let fcvcount=$fcvcount+1 @@ -313,7 +313,7 @@ function CheckFiles do if [ ! -r $fan ] then - echo "Error: file $fan doesn't exist" >&2 + echo "Error: file $fan doesn't exist or isn't readable" >&2 outdated=1 fi done @@ -323,7 +323,8 @@ function CheckFiles if [ $outdated -eq 1 ] then echo >&2 - echo "At least one referenced file is missing. Either some required kernel" >&2 + echo "At least one referenced file is missing or doesn't have" >&2 + echo "correct privileges. Either some required kernel" >&2 echo "modules haven't been loaded, or your configuration file is outdated." >&2 echo "In the latter case, you should run pwmconfig again." >&2 fi |