Comments and words.

This commit is contained in:
Bandie Kojote
2015-03-17 07:23:23 +01:00
parent d37cc28bf0
commit 5e4766cfa8
4 changed files with 33 additions and 7 deletions

View File

@ -5,7 +5,11 @@
# Licence: GNU-GPLv3
errorcounter=0
c=0
filecounter=0
# Signature check part + error counter + file counter + file list
echo "Checking signatures in /boot..."
for i in `find /boot -name "*.sig"`
do
@ -15,15 +19,19 @@ do
((errorcounter++))
files[$errorcounter]=$i
fi
((c++))
((filecounter++))
done
if [ $c -eq 0 ]
# Nothing to verify? Exit 2.
if [ $filecounter -eq 0 ]
then
echo "Nothing to verify."
exit 2
fi
# Message
echo -ne "There has been "
if [ $errorcounter -eq 0 ]
then
@ -38,6 +46,10 @@ else
echo " bad signatures."
fi
# File list and exit codes
if [ $errorcounter -gt 0 ]
then
for(( i=1; i<=${#files[@]}; i++))