Update install.sh

This commit is contained in:
Kroese 2024-02-01 13:24:34 +01:00 committed by GitHub
parent 846dd0581b
commit 214a9f9f6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -490,15 +490,16 @@ detectImage() {
[ ! -f "$loc" ] && loc="$dir/sources/install.esd" [ ! -f "$loc" ] && loc="$dir/sources/install.esd"
if [ ! -f "$loc" ]; then if [ ! -f "$loc" ]; then
if [ -f "$dir/WIN51" ] || [ -f "$dir/SETUPXP.HTM" ]; then if [ -f "$dir/WIN51" ] || [ -f "$dir/SETUPXP.HTM" ]; then
DETECTED="winxpx86" DETECTED="winxpx86"
info "Detected: Windows XP" info "Detected: Windows XP"
return 0 return 0
else
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB"
BOOT_MODE="windows_legacy"
return 1
fi fi
warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB"
BOOT_MODE="windows_legacy"
return 1
fi fi
tag="DISPLAYNAME" tag="DISPLAYNAME"