mirror of
https://github.com/Bandie/grub2-signing-extension.git
synced 2024-04-01 15:51:26 +00:00
Additional exit codes added + better shredding
This commit is contained in:
parent
5e4766cfa8
commit
dfe955413b
@ -40,4 +40,12 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Shredding passphrase
|
# Shredding passphrase
|
||||||
pp=`cat /dev/urandom | tr -dc 'a-zA-Z0-9-!@#$%^&*()_+~' | fold -w ${#pp} | head -n 1`
|
|
||||||
|
echo "Shredding passphrase..."
|
||||||
|
for ( i=0; $i<10; i++ )
|
||||||
|
do
|
||||||
|
pp=`cat /dev/urandom | tr -dc 'a-zA-Z0-9-!@#$%^&*()_+~' | fold -w ${#pp} | head -n 1`
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Done!"
|
||||||
|
exit 0
|
||||||
|
@ -19,3 +19,4 @@ do
|
|||||||
rm $i
|
rm $i
|
||||||
done
|
done
|
||||||
echo "GRUB2 unsigned. WARNING: If you want to deactivate GRUB2's signature feature, change the check_signatures variable in the headers file!"
|
echo "GRUB2 unsigned. WARNING: If you want to deactivate GRUB2's signature feature, change the check_signatures variable in the headers file!"
|
||||||
|
exit 0
|
||||||
|
@ -60,3 +60,6 @@ then
|
|||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# WHAT?!
|
||||||
|
exit 666
|
||||||
|
Loading…
Reference in New Issue
Block a user