summaryrefslogtreecommitdiffstats
path: root/abs/extra/syslinux/syslinux.install
blob: cbc4e9e7ffbbc8c01ca1d8c34622646cd3faf516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
show_efi_msg() {
  cat << EOF

==> For setting up Syslinux EFI follow
    https://wiki.archlinux.org/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.archlinux.org/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
}