From de40227b5a4d4ab0f4492bfd36cc030f2228c97c Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 21 Dec 2005 02:53:49 +0000 Subject: [PATCH] 2005-12-21 02:53:49 by steve Only show the success message if not booting the new instance. When booting display a message showing how to connect to the terminal. --- xen-create-image | 87 ++++++++++++++++++++++++++++++------------------ 1 file changed, 54 insertions(+), 33 deletions(-) diff --git a/xen-create-image b/xen-create-image index fd57d1f..9f649a3 100755 --- a/xen-create-image +++ b/xen-create-image @@ -208,7 +208,7 @@ suffixed with either Mb, or Gb. -- http://www.steve.org.uk/ - $Id: xen-create-image,v 1.44 2005-12-21 02:47:41 steve Exp $ + $Id: xen-create-image,v 1.45 2005-12-21 02:53:49 steve Exp $ =cut @@ -251,7 +251,9 @@ my %CONFIG; # # The width of the current terminal, used for line-wrapping. # -my $TERMINAL_WIDTH = getTerminalWidth(); +my ( $TERMINAL_WIDTH, $TERMINAL_HEIGHT ) = getTerminalSize(); + + # # Constants for filesystem usage. @@ -634,34 +636,12 @@ print "Done\n"; # # Give status message # -print <