diff --git a/local-sbin/sign-boot b/local-sbin/sign-boot index 6e6f75c..c027e8f 100755 --- a/local-sbin/sign-boot +++ b/local-sbin/sign-boot @@ -1,4 +1,8 @@ #!/bin/bash +if [ -f /run/signing ]; then + echo "[-] Signing already in progress!"; +fi; +/usr/bin/touch /run/signing; echo "[*] Preparing to sign!"; #touch /dev/shm/sb-passpwd.txt; #chown root:root /dev/shm/sb-passpwd.txt; @@ -38,4 +42,5 @@ do /usr/bin/gpg --batch --detach-sign $i; done; #shred /dev/shm/sb-passpwd.txt; +/usr/bin/rm -f /run/signing; echo "[*] Signing Complete!";