Check whether the GRUB2 is signed and create a file (an i3status implementation idea).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 820B

1234567891011121314151617181920212223242526272829
  1. # Makefile for grub2-se-verifyserv
  2. # Author: Bandie Canis
  3. # Licence: GNU-GPLv3
  4. all:
  5. mkdir -p bin
  6. cc --std=c99 src/grub2-se-verifyserv.c -o bin/grub2-se-verifyserv
  7. install:
  8. mkdir -p /usr/local/sbin
  9. cp ./bin/grub2-se-verifyserv /usr/local/sbin/
  10. cp ./systemd/grub2-se-verifyserv.service /etc/systemd/system
  11. chown root:root /usr/local/sbin/grub2-se-verifyserv
  12. chmod 740 /usr/local/sbin/grub2-se-verifyserv
  13. @printf "Done.\n"
  14. @printf "You may want to enable and start the service: \"systemctl enable grub2-se-verifyserv ; systemctl start grub2-se-verifyserv\"\n"
  15. @printf "The file will be called /verified\n"
  16. uninstall:
  17. rm /usr/sbin/local/grub2-se-verifyserv
  18. rm /etc/systemd/system/grub2-se-verifyserv.service
  19. @printf "Done.\n"
  20. clean:
  21. rm bin/grub2-se-verifyserv
  22. rmdir bin
  23. test:
  24. @printf "What to test?"