ia64/xen-unstable

changeset 19216:cb8ece5d7647

Fix typos in xendomains script.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Feb 17 11:04:08 2009 +0000 (2009-02-17)
parents 6630f99dfc01
children 2e6de0f50f3f
files tools/hotplug/Linux/init.d/xendomains
line diff
     1.1 --- a/tools/hotplug/Linux/init.d/xendomains	Tue Feb 17 11:01:05 2009 +0000
     1.2 +++ b/tools/hotplug/Linux/init.d/xendomains	Tue Feb 17 11:04:08 2009 +0000
     1.3 @@ -233,7 +233,7 @@ start()
     1.4                      XMR=`xm restore $dom 2>&1 1>/dev/null`
     1.5                      #xm restore $dom
     1.6                      if [ $? -ne 0 ]; then
     1.7 -                	echo -e "\nAn error occured while restoring domain ${dom##*/}:\n$XMR"
     1.8 +                        echo -e "\nAn error occurred while restoring domain ${dom##*/}:\n$XMR"
     1.9                          rc_failed $?
    1.10                          echo -e '!'
    1.11                      else
    1.12 @@ -267,8 +267,8 @@ start()
    1.13  		echo -n "(skip)"
    1.14  	    else
    1.15  		XMC=`xm create --quiet --defconfig $dom`
    1.16 -            	if [ $? -ne 0 ]; then
    1.17 -                    echo -e "\nAn error occured while creating domain ${dom##*/}: $XMC\n"
    1.18 +		if [ $? -ne 0 ]; then
    1.19 +		    echo -e "\nAn error occurred while creating domain ${dom##*/}: $XMC\n"
    1.20  		    rc_failed $?
    1.21  		    echo -e '!'
    1.22  		else
    1.23 @@ -357,7 +357,7 @@ stop()
    1.24  		echo -n "(SR-$sysrq)"
    1.25  		XMR=`xm sysrq $id $sysrq 2>&1 1>/dev/null`
    1.26  		if test $? -ne 0; then
    1.27 -                    echo -e "\nAn error occured while doing sysrq on domain:\n$XMR\n"
    1.28 +		    echo -e "\nAn error occurred while doing sysrq on domain:\n$XMR\n"
    1.29  		    rc_failed $?
    1.30  		    echo -n '!'
    1.31  		fi
    1.32 @@ -375,7 +375,7 @@ stop()
    1.33  	    WDOG_PID=$!
    1.34  	    XMR=`xm migrate $id $XENDOMAINS_MIGRATE 2>&1 1>/dev/null`
    1.35  	    if test $? -ne 0; then
    1.36 -                echo -e "\nAn error occured while migrating domain:\n$XMR\n"
    1.37 +		echo -e "\nAn error occurred while migrating domain:\n$XMR\n"
    1.38  		rc_failed $?
    1.39  		echo -e '!'
    1.40  
    1.41 @@ -395,7 +395,7 @@ stop()
    1.42  	    mkdir -p "$XENDOMAINS_SAVE"
    1.43  	    XMR=`xm save $id $XENDOMAINS_SAVE/$name 2>&1 1>/dev/null`
    1.44  	    if test $? -ne 0; then
    1.45 -                echo -e "\nAn error occured while saving domain:\n$XMR\n"
    1.46 +		echo -e "\nAn error occurred while saving domain:\n$XMR\n"
    1.47  		rc_failed $?
    1.48  		echo -e '!'
    1.49  		kill $WDOG_PID >/dev/null 2>&1
    1.50 @@ -413,7 +413,7 @@ stop()
    1.51  	    WDOG_PID=$!
    1.52  	    XMR=`xm shutdown $id $XENDOMAINS_SHUTDOWN 2>&1 1>/dev/null`
    1.53  	    if test $? -ne 0; then
    1.54 -                echo -e "\nAn error occured while shutting down domain:\n$XMR\n"
    1.55 +		echo -e "\nAn error occurred while shutting down domain:\n$XMR\n"
    1.56  		rc_failed $?
    1.57  		echo -e '!'
    1.58  	    fi
    1.59 @@ -432,7 +432,7 @@ stop()
    1.60  	WDOG_PID=$!
    1.61  	XMR=`xm shutdown $XENDOMAINS_SHUTDOWN_ALL 2>&1 1>/dev/null`
    1.62  	if test $? -ne 0; then
    1.63 -            echo -e "\nAn error occured while shutting down all domains: $XMR\n"
    1.64 +	    echo -e "\nAn error occurred while shutting down all domains: $XMR\n"
    1.65  	    rc_failed $?
    1.66  	    echo -e '!'
    1.67  	fi