mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Meta: Add environment variable to specify bochs command in run script
This commit is contained in:
parent
411058b2a3
commit
131f14ed62
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
[ -e /dev/kvm -a -r /dev/kvm -a -w /dev/kvm ] && SERENITY_KVM_ARG="-enable-kvm"
|
||||
|
||||
[ -z "$SERENITY_BOCHS_BIN" ] && SERENITY_BOCHS_BIN="bochs"
|
||||
|
||||
[ -z "$SERENITY_QEMU_BIN" ] && SERENITY_QEMU_BIN="qemu-system-i386"
|
||||
|
||||
[ -z "$SERENITY_KERNEL_CMDLINE" ] && SERENITY_KERNEL_CMDLINE="hello"
|
||||
|
@ -25,7 +27,7 @@ export SDL_VIDEO_X11_DGAMOUSE=0
|
|||
|
||||
if [ "$1" = "b" ]; then
|
||||
# ./run b: bochs
|
||||
bochs -q -f .bochsrc
|
||||
$SERENITY_BOCHS_BIN -q -f .bochsrc
|
||||
elif [ "$1" = "qn" ]; then
|
||||
# ./run qn: qemu without network
|
||||
$SERENITY_QEMU_BIN \
|
||||
|
|
Loading…
Add table
Reference in a new issue