MDS / src /finish.sh
Fred808's picture
Upload 33 files
021894c verified
raw
history blame contribute delete
505 Bytes
#!/usr/bin/env bash
set -Eeuo pipefail
if [[ "${DISPLAY,,}" == "web" ]]; then
[ ! -f "$INFO" ] && error "File $INFO not found?!"
rm -f "$INFO"
[ ! -f "$PAGE" ] && error "File $PAGE not found?!"
rm -f "$PAGE"
else
if [[ "${DISPLAY,,}" == "vnc" ]]; then
html "You can now connect to VNC on port $VNC_PORT." "0"
else
html "The virtual machine was booted successfully." "0"
fi
fi
if [[ "$DEBUG" == [Yy1]* ]]; then
printf "QEMU arguments:\n\n%s\n\n" "${ARGS// -/$'\n-'}"
fi
return 0