syslinux.install 702 B

123456789101112131415161718192021222324252627282930313233
  1. show_efi_msg() {
  2. cat << EOF
  3. ==> For setting up Syslinux EFI follow
  4. https://wiki.parabola.nu/index.php/Syslinux#UEFI_Systems
  5. ==> The syslinux-install_update script does not currently support EFI install
  6. EOF
  7. }
  8. show_bios_autoupdate_msg() {
  9. cat << EOF
  10. ==> For setting up Syslinux BIOS using the syslinux-install_update script follow
  11. https://wiki.parabola.nu/index.php/Syslinux#Automatic_Install
  12. EOF
  13. }
  14. post_install() {
  15. [ -f /boot/syslinux/SYSLINUX_AUTOUPDATE ] || show_bios_autoupdate_msg
  16. [ -d /sys/firmware/efi ] && show_efi_msg
  17. true
  18. }
  19. post_upgrade() {
  20. ## auto-update syslinux if /boot/syslinux/SYSLINUX_AUTOUPDATE exists
  21. /usr/bin/syslinux-install_update -s
  22. post_install
  23. }