mirror of
https://github.com/dockur/windows.git
synced 2024-11-02 19:51:49 +00:00
feat: Init script (#4)
This commit is contained in:
parent
9d2298a91d
commit
5d4c5a55ec
1 changed files with 27 additions and 0 deletions
27
src/init.sh
Normal file
27
src/init.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
echo "❯ Starting Windows for Docker v$(</run/version)..."
|
||||
echo "❯ For support visit https://github.com/dockur/windows"
|
||||
|
||||
cd /run
|
||||
|
||||
. reset.sh # Initialize system
|
||||
. install.sh # Get bootdisk
|
||||
. disk.sh # Initialize disks
|
||||
. display.sh # Initialize graphics
|
||||
. network.sh # Initialize network
|
||||
. boot.sh # Configure boot
|
||||
. proc.sh # Initialize processor
|
||||
. config.sh # Configure arguments
|
||||
|
||||
trap - ERR
|
||||
|
||||
if [[ "${DISPLAY,,}" == "web" ]]; then
|
||||
websockify -D --web /usr/share/novnc/ 8006 localhost:5900 2>/dev/null
|
||||
fi
|
||||
|
||||
info "Booting image using $VERS..."
|
||||
|
||||
[[ "$DEBUG" == [Yy1]* ]] && set -x
|
||||
exec qemu-system-x86_64 ${ARGS:+ $ARGS}
|
Loading…
Reference in a new issue