diff options
| -rwxr-xr-x | scripts/poky-qemu-internal | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 8fd1834ca8..c88d71178b 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
| @@ -189,6 +189,9 @@ cleanup() { | |||
| 189 | echo "poky-export-rootfs stop $ROOTFS" | 189 | echo "poky-export-rootfs stop $ROOTFS" |
| 190 | poky-export-rootfs stop $ROOTFS | 190 | poky-export-rootfs stop $ROOTFS |
| 191 | fi | 191 | fi |
| 192 | # If QEMU crashes or somehow tty properties are not restored | ||
| 193 | # after qemu exits, we need to run stty sane | ||
| 194 | stty sane | ||
| 192 | } | 195 | } |
| 193 | 196 | ||
| 194 | n1=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] | 197 | n1=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] |
| @@ -458,8 +461,7 @@ fi | |||
| 458 | echo "Running $QEMU..." | 461 | echo "Running $QEMU..." |
| 459 | # -no-reboot is a mandatory option - see bug #100 | 462 | # -no-reboot is a mandatory option - see bug #100 |
| 460 | echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"' | 463 | echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"' |
| 461 | # If QEMU crashes, we need to run stty sane | 464 | $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT" |
| 462 | $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT $SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT" || stty sane | ||
| 463 | 465 | ||
| 464 | 466 | ||
| 465 | cleanup | 467 | cleanup |
