mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
Improve some more error messages
This commit is contained in:
1 parent
1d8f9f18f9
commit
af6bb037ef
1 file changed
+4
-3
+4
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user