feat: add --offline argument to force an offline configuration. close #1194

This commit is contained in:
Martin Wimpress 2024-05-11 03:34:28 +01:00 committed by Martin Wimpress
parent d01011a39c
commit dc30cc51b1
1 changed files with 4 additions and 0 deletions

View File

@ -1421,6 +1421,7 @@ function usage() {
echo " --fullscreen : Starts VM in full screen mode (Ctl+Alt+f to exit)"
echo " --ignore-msrs-always : Configure KVM to always ignore unhandled machine-specific registers"
echo " --kill : Kill the VM process if it is running"
echo " --offline : Override all network settings and start the VM offline"
echo " --screen <screen> : Use specified screen to determine the window size."
echo " --screenpct <percent> : Percent of fullscreen for VM if --fullscreen is not specified."
echo " --shortcut : Create a desktop shortcut"
@ -1690,6 +1691,9 @@ else
-kill|--kill)
KILL_VM=1
shift;;
-offline|--offline)
network="none"
shift;;
-screen|--screen)
SCREEN="${2}"
shift