This commit is contained in:
Valeria Fadeeva 2023-12-20 20:50:16 +05:00
parent 0d394fa234
commit 4bfed72327
7 changed files with 64 additions and 17 deletions

15
.github/FUNDING.yml vendored
View File

@ -1,15 +0,0 @@
# These are supported funding model platforms
#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
#patreon: # Replace with a single Patreon username
#open_collective: # Replace with a single Open Collective username
#ko_fi: # Replace with a single Ko-fi username
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
#liberapay: # Replace with a single Liberapay username
#issuehunt: # Replace with a single IssueHunt username
#otechie: # Replace with a single Otechie username
#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
#github: [Valeria-Fadeeva]
custom: ["https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066", "https://yoomoney.ru/to/4100115921160758", "https://qiwi.com/n/VALERIAFADEEVA", "valeria.fadeeva.me"]

View File

@ -0,0 +1,24 @@
menuentry "EFI {OSNAME} ({KERNEL})" {
icon /EFI/refind/themes/{THEME}/icons/os_{ICON}.png
ostype Linux
graphics on
loader /EFI/Linux/{KERNEL_EFI}-fallback.efi
submenuentry "EFI {OSNAME} ({KERNEL}) terminal" {
loader /EFI/Linux/{KERNEL_EFI}-fallback-terminal.efi
}
submenuentry "{OSNAME} ({KERNEL})" {
loader /EFI/Linux/{KERNEL_VMLINUZ}
initrd /EFI/Linux/{INITRAMFS}-fallback.img
options "{CMDLINE}"
}
submenuentry "{OSNAME} ({KERNEL}) terminal" {
loader /EFI/Linux/{KERNEL_VMLINUZ}
initrd /EFI/Linux/{INITRAMFS}-fallback-terminal.img
options "{CMDLINE_TERMINAL}"
}
}

View File

@ -0,0 +1,28 @@
menuentry "{OSNAME} ({KERNEL})" {
icon /EFI/refind/themes/{THEME}/icons/os_{ICON}.png
ostype Linux
graphics on
loader /EFI/Linux/{KERNEL_VMLINUZ}
initrd /EFI/Linux/{INITRAMFS}-fallback.img
options "{CMDLINE}"
submenuentry "{OSNAME} ({KERNEL}) terminal" {
loader /EFI/Linux/{KERNEL_VMLINUZ}
initrd /EFI/Linux/{INITRAMFS}-fallback-terminal.img
options "{CMDLINE_TERMINAL}"
}
submenuentry "EFI {OSNAME} ({KERNEL})" {
loader /EFI/Linux/{KERNEL_EFI}-fallback.efi
initrd
options
}
submenuentry "EFI {OSNAME} ({KERNEL}) terminal" {
loader /EFI/Linux/{KERNEL_EFI}-fallback-terminal.efi
initrd
options
}
}

View File

@ -0,0 +1 @@
menu-template-efi-first

View File

@ -1 +0,0 @@

View File

@ -1,3 +1,5 @@
#!/bin/bash
git add . && git commit -m "Update" && git push
echo "Ready"

10
usr/bin/refind-menu-generator Executable file → Normal file
View File

@ -111,7 +111,15 @@ if [ -d "$KERNEL_DIR" ]; then
manual_conf=$(mktemp)
template="/etc/refind-menu-generator/menu-template.txt"
template_choice=$(cat "/etc/refind-menu-generator/menu-template.conf" | awk '{$1=$1;print}')
if [ ! -f "/etc/refind-menu-generator/${template_choice}.txt" ] || [ "$(ls -s /etc/refind-menu-generator/${template_choice}.txt | awk '{print $1}')" -lt 10 ]; then
template="/etc/refind-menu-generator/menu-template.txt"
else
template="/etc/refind-menu-generator/${template_choice}.txt"
fi
kernels_list=$(ls -1 "${ESP}/EFI/Linux/" | grep 'linu' | grep -v 'fallback' | grep '\.efi$')