Update install.sh
This commit is contained in:
parent
572b98bc8f
commit
0228a2ba17
1 changed files with 11 additions and 0 deletions
|
@ -172,6 +172,10 @@ finishInstall() {
|
||||||
echo "$ARGS" > "$STORAGE/windows.args"
|
echo "$ARGS" > "$STORAGE/windows.args"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${VGA:-}" ] && [[ "${VGA:-}" != "virtio"* ]]; then
|
||||||
|
echo "$VGA" > "$STORAGE/windows.vga"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${USB:-}" ] && [[ "${USB:-}" != "qemu-xhci"* ]]; then
|
if [ -n "${USB:-}" ] && [[ "${USB:-}" != "qemu-xhci"* ]]; then
|
||||||
echo "$USB" > "$STORAGE/windows.usb"
|
echo "$USB" > "$STORAGE/windows.usb"
|
||||||
fi
|
fi
|
||||||
|
@ -1064,6 +1068,13 @@ bootWindows() {
|
||||||
ARGUMENTS="$ARGS ${ARGUMENTS:-}"
|
ARGUMENTS="$ARGS ${ARGUMENTS:-}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -s "$STORAGE/windows.vga" ] && [ -f "$STORAGE/windows.vga" ]; then
|
||||||
|
if [ -z "${VGA:-}" ]; then
|
||||||
|
VGA=$(<"$STORAGE/windows.vga")
|
||||||
|
VGA="${VGA//[![:print:]]/}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -s "$STORAGE/windows.usb" ] && [ -f "$STORAGE/windows.usb" ]; then
|
if [ -s "$STORAGE/windows.usb" ] && [ -f "$STORAGE/windows.usb" ]; then
|
||||||
if [ -z "${USB:-}" ]; then
|
if [ -z "${USB:-}" ]; then
|
||||||
USB=$(<"$STORAGE/windows.usb")
|
USB=$(<"$STORAGE/windows.usb")
|
||||||
|
|
Loading…
Reference in a new issue