run: make text mode (-n) the default

Rename the opposite graphics mode to -x.
This commit is contained in:
Ciro Santilli
2018-03-24 22:42:20 +00:00
parent baccf8ff07
commit b13595273e
3 changed files with 49 additions and 36 deletions

28
run
View File

@@ -23,9 +23,9 @@ lkmc_eval=''
initrd=false
initramfs=false
memory=256M
nographic=false
nographic=true
root=''
while getopts a:c:DdE:e:f:G:gIiKkm:nt:x OPT; do
while getopts a:c:DdE:e:f:G:ghIiKkm:x OPT; do
case "$OPT" in
a)
arch="$OPTARG"
@@ -49,16 +49,6 @@ while getopts a:c:DdE:e:f:G:gIiKkm:nt:x OPT; do
f)
extra_append_after_dash="$extra_append_after_dash $OPTARG"
;;
K)
kvm=true
;;
k)
extra_append="$extra_append kgdbwait"
# For those who want to try KDB.
#extra_append="$extra_append kgdbwait kgdboc=kbd"
extra_flags_qemu="$extra_flags_qemu -serial tcp::1234,server,nowait"
kgdb=true
;;
G)
gem5opts="$OPTARG"
;;
@@ -75,11 +65,21 @@ while getopts a:c:DdE:e:f:G:gIiKkm:nt:x OPT; do
i)
initrd=true
;;
K)
kvm=true
;;
k)
extra_append="$extra_append kgdbwait"
# For those who want to try KDB.
#extra_append="$extra_append kgdbwait kgdboc=kbd"
extra_flags_qemu="$extra_flags_qemu -serial tcp::1234,server,nowait"
kgdb=true
;;
m)
memory="$OPTARG"
;;
n)
nographic=true
x)
nographic=false
;;
esac
done