bash-stuff/boot-verify-sign

10 lines
240 B
Plaintext
Raw Normal View History

2024-05-30 01:42:30 +01:00
#!/bin/bash
/bin/bash /usr/local/sbin/verify-boot;
2024-05-30 01:50:51 +01:00
if [ $? -ne 0 ]; then
2024-05-30 01:42:30 +01:00
echo "Bad" > /opt/boot-verify-state;
/bin/bash /usr/local/sbin/sign-boot;
echo "Good" > /opt/boot-verify-state;
else
echo "Good" > /opt/boot-verify-state;
fi;