Created script to download new versions of ZFSBootMenu
This commit is contained in:
39
zbm-upgrade.sh
Executable file
39
zbm-upgrade.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/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
|
Reference in New Issue
Block a user