aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/qmp/qmp-shell3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
index 1182f82..5986e37 100755
--- a/scripts/qmp/qmp-shell
+++ b/scripts/qmp/qmp-shell
@@ -286,6 +286,9 @@ class QMPShell(qmp.QEMUMonitorProtocol):
def show_banner(self, msg='Welcome to the QMP low-level shell!'):
print msg
+ if not self._greeting:
+ print 'Connected'
+ return
version = self._greeting['QMP']['version']['qemu']
print 'Connected to QEMU %d.%d.%d\n' % (version['major'],version['minor'],version['micro'])