summaryrefslogtreecommitdiff
path: root/libre/syslinux/syslinux.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-10-17 13:27:22 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-10-17 13:27:22 -0200
commitabd1418249a862d6f35c3c57f045264e36a419e0 (patch)
tree420f3adc814f99590030a0efb67f86d3fca64a8b /libre/syslinux/syslinux.install
parenta098c771b2caa364ae95b65818c93726751e8f16 (diff)
downloadabslibre-abd1418249a862d6f35c3c57f045264e36a419e0.tar.gz
abslibre-abd1418249a862d6f35c3c57f045264e36a419e0.tar.bz2
abslibre-abd1418249a862d6f35c3c57f045264e36a419e0.zip
syslinux-6.03-2.parabola1: redo/simplify PKGBUILD
Diffstat (limited to 'libre/syslinux/syslinux.install')
-rw-r--r--libre/syslinux/syslinux.install43
1 files changed, 16 insertions, 27 deletions
diff --git a/libre/syslinux/syslinux.install b/libre/syslinux/syslinux.install
index ed8387773..9125b6ef7 100644
--- a/libre/syslinux/syslinux.install
+++ b/libre/syslinux/syslinux.install
@@ -1,43 +1,32 @@
-post_install() {
-
+show_efi_msg() {
cat << EOF
-==> For setting up Syslinux BIOS using the syslinux-install_update script follow
- https://wiki.parabolagnulinux.org/index.php/Syslinux#Automatic_Install
-EOF
-
- ## Message specific to Syslinux 4.xx (or 5.xx) to 6.xx upgrade
- if [ "$(vercmp $2 6.00)" -lt 0 ]; then
-
- cat << EOF
+==> For setting up Syslinux EFI follow
+ https://wiki.parabola.nu/index.php/Syslinux#UEFI_Systems
-==> If you are upgrading from Syslinux 4.xx or 5.xx, please re-install
- (not update) Syslinux BIOS manually (not using the install script) once
- by following https://wiki.parabolagnulinux.org/index.php/Syslinux#Manual_install
+==> The syslinux-install_update script does not currently support EFI install
-==> The install script may not properly upgrade Syslinux to 6.xx version
EOF
-
- fi
-
+}
+
+show_bios_autoupdate_msg() {
cat << EOF
-==> For setting up Syslinux EFI follow
- https://wiki.parabolagnulinux.org/index.php/Syslinux#UEFI_Systems
+==> For setting up Syslinux BIOS using the syslinux-install_update script follow
+ https://wiki.parabola.nu/index.php/Syslinux#Automatic_Install
+EOF
+}
-==> The syslinux-install_update script does not currently support EFI install
+post_install() {
+ [ -f /boot/syslinux/SYSLINUX_AUTOUPDATE ] || show_bios_autoupdate_msg
+ [ -d /sys/firmware/efi ] && show_efi_msg
-EOF
-
+ true
}
post_upgrade() {
-
## auto-update syslinux if /boot/syslinux/SYSLINUX_AUTOUPDATE exists
/usr/bin/syslinux-install_update -s
-
+
post_install
-
}
-
-# vim:set ts=2 sw=2 et: