Make sure sign boot is single-instance.

This commit is contained in:
Captain ALM 2024-10-01 15:41:14 +01:00
parent 0e6f6e0e0d
commit d14e408298
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -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!";