From 0f17c08b1e31a26d703b222240b792bd0367e93e Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 11 May 2024 16:22:38 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/install.sh b/src/install.sh index de9adfe..14faa9a 100644 --- a/src/install.sh +++ b/src/install.sh @@ -7,6 +7,19 @@ FB="falling back to manual installation!" ETFS="boot/etfsboot.com" EFISYS="efi/microsoft/boot/efisys_noprompt.bin" +hasDisk() { + + [ -b "/disk1" ] && return 0 + [ -b "/dev/disk1" ] && return 0 + [ -b "${DEVICE:-}" ] && return 0 + + if [ -s "$STORAGE/data.img" ] || [ -s "$STORAGE/data.qcow2" ]; then + return 0 + fi + + return 1 +} + startInstall() { html "Starting $APP..."