From 642cfaac0cb515008cfc91aafe04ab1db7a51581 Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Fri, 21 Dec 2012 08:04:53 -0500 Subject: runqemu: change terminal's INTR key in 'serial' mode If you are using an image in '-serial stdio' mode, temporarily change the terminal's interrupt character to 'Ctrl-]' for the duration of the image run. In this way, hitting 'Ctrl-C' for something running in the image doesn't accidentally abort the entire qemu session. Signed-off-by: Trevor Woerner Signed-off-by: Saul Wold --- scripts/runqemu | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/runqemu') diff --git a/scripts/runqemu b/scripts/runqemu index b8148ef55e..188eccf003 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -64,6 +64,7 @@ LAZY_ROOTFS="" SCRIPT_QEMU_OPT="" SCRIPT_QEMU_EXTRA_OPT="" SCRIPT_KERNEL_OPT="" +SERIALSTDIO="" # Determine whether the file is a kernel or QEMU image, and set the # appropriate variables @@ -138,6 +139,7 @@ while true; do "serial") SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio" SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" + SERIALSTDIO="1" ;; "qemuparams="*) SCRIPT_QEMU_EXTRA_OPT="${arg##qemuparams=}" -- cgit 1.2.3-korg