From 54198a093da68169068762e8bbac94986dd169f1 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 21 Jan 2024 19:26:05 +0100 Subject: [PATCH] feat: Detect filename variations (#364) --- src/install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/install.sh b/src/install.sh index f8b8fcd..ee8647b 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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