#!/bin/bash set -euo pipefail N=$(efibootmgr | sed -n 's/^Boot\([0-9A-F]\{4\}\)\* felhom-next.*/\1/p'); [ -n "$N" ] && efibootmgr -q -b $N -B rm -rf /boot/efi/EFI/felhomnext; efibootmgr | head -4