diff options
Diffstat (limited to 'libre-testing/syslinux/syslinux.install')
-rw-r--r-- | libre-testing/syslinux/syslinux.install | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libre-testing/syslinux/syslinux.install b/libre-testing/syslinux/syslinux.install new file mode 100644 index 000000000..9125b6ef7 --- /dev/null +++ b/libre-testing/syslinux/syslinux.install @@ -0,0 +1,32 @@ +show_efi_msg() { + cat << EOF + +==> For setting up Syslinux EFI follow + https://wiki.parabola.nu/index.php/Syslinux#UEFI_Systems + +==> The syslinux-install_update script does not currently support EFI install + +EOF +} + +show_bios_autoupdate_msg() { + cat << EOF + +==> For setting up Syslinux BIOS using the syslinux-install_update script follow + https://wiki.parabola.nu/index.php/Syslinux#Automatic_Install +EOF +} + +post_install() { + [ -f /boot/syslinux/SYSLINUX_AUTOUPDATE ] || show_bios_autoupdate_msg + [ -d /sys/firmware/efi ] && show_efi_msg + + true +} + +post_upgrade() { + ## auto-update syslinux if /boot/syslinux/SYSLINUX_AUTOUPDATE exists + /usr/bin/syslinux-install_update -s + + post_install +} |