Update install.sh

This commit is contained in:
Kroese 2024-06-10 14:47:16 +02:00 committed by GitHub
parent 3b43106bc2
commit d8b166665e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -973,16 +973,13 @@ bootWindows() {
rm -rf "$TMP" rm -rf "$TMP"
if [ -s "$STORAGE/windows.vga" ] && [ -f "$STORAGE/windows.vga" ]; then if [ -s "$STORAGE/windows.vga" ] && [ -f "$STORAGE/windows.vga" ]; then
VGA=$(<"$STORAGE/windows.vga") [ -z "${VGA:-}" ] && VGA=$(<"$STORAGE/windows.vga")
else else
if [[ "${PLATFORM,,}" == "arm64" ]]; then [ -z "${VGA:-}" ] && [[ "${PLATFORM,,}" == "arm64" ]] && VGA="virtio-gpu"
VGA="virtio-gpu"
echo "$VGA" > "$STORAGE/windows.vga"
fi
fi fi
if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then
DISK_TYPE=$(<"$STORAGE/windows.type") [ -z "${DISK_TYPE:-}" ] && DISK_TYPE=$(<"$STORAGE/windows.type")
fi fi
if [ -s "$STORAGE/windows.mode" ] && [ -f "$STORAGE/windows.mode" ]; then if [ -s "$STORAGE/windows.mode" ] && [ -f "$STORAGE/windows.mode" ]; then