Browse Source

Usage of shred instead of rm

master 0.1.7
Bandie 3 months ago
parent
commit
c7b049cc96
Signed by: Bandie GPG Key ID: 843D7FA93BA46312
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      sbin/grub-unsign
  2. +2
    -2
      sbin/grub-update-kernel-signature

+ 1
- 1
sbin/grub-unsign View File

@ -21,7 +21,7 @@ case "$stat" in
;&
0|3)
# Then remove the signatures.
find /boot -iname "efi" -prune -o -name '*.sig' -exec rm {} +
find /boot -iname "efi" -prune -o -name '*.sig' -exec shred --remove=unlink {} +
echo "GRUB2 unsigned. WARNING: If you want to deactivate GRUB2's signature feature, change the check_signatures variable in the headers file!"
exit 0


+ 2
- 2
sbin/grub-update-kernel-signature View File

@ -24,8 +24,8 @@ function sign(){
}
rm /boot/*.sig
rm /boot/grub/grub.cfg.sig
shred --remove=unlink /boot/*.sig
shred --remove=unlink /boot/grub/grub.cfg.sig
if ! sign
then


Loading…
Cancel
Save