Update pika-refind-theme.postinst

This commit is contained in:
ferrreo 2023-05-25 00:02:28 +01:00 committed by GitHub
parent 75d0032763
commit 16aa56bfea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,23 @@
#! /bin/bash
if [[ -z $EFI_PATH ]] && [[ -d /efi ]]
if [[ -z $EFI_PATH ]] && [[ -f /efi/EFI/refind/refind.conf ]]
then
export EFI_PATH=/efi
fi
if [[ -z $EFI_PATH ]] && [[ -d /esp ]]
if [[ -z $EFI_PATH ]] && [[ -f /esp/EFI/refind/refind.conf ]]
then
export EFI_PATH=/esp
fi
if [[ -z $EFI_PATH ]] && [[ -d /boot/efi ]]
if [[ -z $EFI_PATH ]] && [[ -f /boot/efi/EFI/refind/refind.conf ]]
then
export EFI_PATH=/boot/efi
fi
if [[ -z $EFI_PATH ]] && [[ -d /boot ]]
if [[ -z $EFI_PATH ]] && [[ -f /boot/EFI/refind/refind.conf ]]
then
export EFI_PATH=/boot
fi