mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
Update install.sh
This commit is contained in:
parent
22d1a91764
commit
8e49fd378d
1 changed files with 8 additions and 5 deletions
|
|
@ -106,15 +106,18 @@ if [ -f "$STORAGE/$BASE" ]; then
|
|||
MAGIC=$(dd if="$STORAGE/$BASE" seek=0 bs=1 count=1 status=none | tr -d '\000')
|
||||
MAGIC="$(printf '%s' "$MAGIC" | od -A n -t x1 -v | tr -d ' \n')"
|
||||
|
||||
if [[ "$MAGIC" == "16" ]] && [ -f "$STORAGE/windows.ver" ]; then
|
||||
if [[ "$MAGIC" == "16" ]]; then
|
||||
|
||||
FOUND="N"
|
||||
[[ "$MANUAL" = [Yy1]* ]] && FOUND="Y"
|
||||
|
||||
if [[ "$FOUND" == "N" ]]; then
|
||||
if [ -f "$STORAGE/data.img" ] || [ -f "$STORAGE/data.qcow2" ]; then
|
||||
FOUND="Y"
|
||||
else
|
||||
[ -b "${DEVICE:-}" ] && FOUND="Y"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$FOUND" == "Y" ]]; then
|
||||
rm -rf "$TMP"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue