Using gpg's passphrase request; new script.

This commit is contained in:
Bandie Canis
2018-01-12 21:46:55 +01:00
parent ea444b288b
commit 1b49b45439
6 changed files with 54 additions and 39 deletions

View File

@ -1,13 +1,13 @@
#!/bin/bash
# grub2-unsign
# Unsigns every file in /boot. Depends on grub2-verify
# Author: Bandie Kojote
# Author: Bandie
# Licence: GNU-GPLv3
# Check if something is wrong
if ! grub2-verify; then
printf '%s\n' "grub2-verify has detected a one or more bad signatures." "Please check for malicious software before you're unsigning everything!" >&2
exit 1
printf '%s\n' "grub2-verify has detected a one or more bad signatures." "Please check for malicious software before you're unsigning everything!" >&2
exit 1
fi
# Then remove the signatures.