Update pika-refind-theme/debian/pika-refind-theme.postinst
This commit is contained in:
parent
b991aad020
commit
c260e528a2
@ -1,31 +1,37 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
export EFI_PATH=/boot/efi
|
||||||
|
|
||||||
if [[ -z $EFI_PATH ]] && [[ -f /efi/EFI/refind/refind.conf ]]
|
if [[ -f $EFI_PATH/EFI/refind/refind.conf ]]
|
||||||
then
|
then
|
||||||
export EFI_PATH=/efi
|
export DO_STANDARD_REFIND_PATH=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f $EFI_PATH/EFI/BOOT/refind.conf ]]
|
||||||
|
then
|
||||||
|
export DO_BOOTX64_REFIND_PATH=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ -z $EFI_PATH ]] && [[ -f /esp/EFI/refind/refind.conf ]]
|
install_refind_theme() {
|
||||||
|
REFIND_PATH="$1"
|
||||||
|
echo "Installing theme to: $REFIND_PATH"
|
||||||
|
grep -qxF 'include refind-dark/refind-dark.conf' $EFI_PATH/$REFIND_PATH/refind.conf || echo 'include refind-dark/refind-dark.conf' >> $EFI_PATH/$REFIND_PATH/refind.conf
|
||||||
|
cp -R /usr/share/pika-refind/theme/* $EFI_PATH/$REFIND_PATH
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $DO_STANDARD_REFIND_PATH == true ]]
|
||||||
then
|
then
|
||||||
export EFI_PATH=/esp
|
echo "Standard Refind Path Detected"
|
||||||
|
install_refind_theme "EFI/refind"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $EFI_PATH ]] && [[ -f /boot/efi/EFI/refind/refind.conf ]]
|
if [[ $DO_BOOTX64_REFIND_PATH == true ]]
|
||||||
then
|
then
|
||||||
export EFI_PATH=/boot/efi
|
echo "Bootx64 Refind Path Detected"
|
||||||
|
install_refind_theme "EFI/BOOT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $EFI_PATH ]] && [[ -f /boot/EFI/refind/refind.conf ]]
|
|
||||||
then
|
|
||||||
export EFI_PATH=/boot
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
grep -qxF 'include refind-dark/refind-dark.conf' $EFI_PATH/EFI/refind/refind.conf || echo 'include refind-dark/refind-dark.conf' >> $EFI_PATH/EFI/refind/refind.conf
|
|
||||||
cp -R /usr/share/pika-refind/theme/* $EFI_PATH/EFI/refind
|
|
||||||
|
|
||||||
|
|
||||||
echo "changing up refind_linux.conf"
|
echo "changing up refind_linux.conf"
|
||||||
if cat /boot/refind_linux.conf | grep amd_pstate
|
if cat /boot/refind_linux.conf | grep amd_pstate
|
||||||
|
Loading…
Reference in New Issue
Block a user