feat: Detect filename variations (#364)

This commit is contained in:
Kroese 2024-01-21 19:26:05 +01:00 committed by GitHub
parent cf72680c07
commit 54198a093d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,27 @@ fi
BASE="boot.img"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="boot.iso"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="Boot.img"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="Boot.iso"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="boot.IMG"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="boot.ISO"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="BOOT.IMG"
[ -f "$STORAGE/$BASE" ] && return 0
BASE="BOOT.ISO"
[ -f "$STORAGE/$BASE" ] && return 0
if [ -z "$BOOT" ]; then
error "No boot disk specified, set BOOT= to the URL of an ISO file." && exit 64
fi