40 lines
784 B
Bash
Executable File
40 lines
784 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
|
|
sudo curl \
|
|
--progress-bar \
|
|
--location \
|
|
--continue-at - \
|
|
--show-error \
|
|
--output /boot/efi/EFI/ZBM/VMLINUZ.EFI \
|
|
https://get.zfsbootmenu.org/efi
|
|
|
|
if [[ ! -e '/boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI' ]]; then
|
|
sudo curl \
|
|
--progress-bar \
|
|
--location \
|
|
--continue-at - \
|
|
--show-error \
|
|
--output /boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI \
|
|
file:///boot/efi/EFI/ZBM/VMLINUZ.EFI
|
|
fi
|
|
|
|
if [[ -d '/boot/efi/EFI/BOOT/' ]]; then
|
|
sudo curl \
|
|
--progress-bar \
|
|
--location \
|
|
--continue-at - \
|
|
--show-error \
|
|
--output /boot/efi/EFI/BOOT/BOOTX64.EFI \
|
|
file:///boot/efi/EFI/ZBM/VMLINUZ.EFI
|
|
|
|
sudo curl \
|
|
--progress-bar \
|
|
--location \
|
|
--continue-at - \
|
|
--show-error \
|
|
--output /boot/efi/EFI/BOOT/shellx64.efi \
|
|
file:///boot/efi/EFI/ZBM/VMLINUZ.EFI
|
|
fi
|