mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Update install.sh
This commit is contained in:
parent
de395da486
commit
d15d501fe9
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…
Add table
Add a link
Reference in a new issue