cosmetical changes in indentation and a typo

This commit is contained in:
Tamás Gérczei 2016-04-19 20:23:44 +02:00
parent 013b2575fe
commit cc1a56a0dc
1 changed files with 6 additions and 6 deletions

View File

@ -27,8 +27,8 @@ case $1 in
for UUID in $ORDER for UUID in $ORDER
do do
# invoke vmadm # invoke vmadm
vmadm start $UUID 2> /dev/null vmadm start $UUID 2> /dev/null
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
# successful start, log and wait # successful start, log and wait
log $UUID managed to $1 log $UUID managed to $1
@ -36,7 +36,7 @@ case $1 in
else else
# failed to start guest # failed to start guest
log $UUID failed to $1 log $UUID failed to $1
fi fi
done done
;; ;;
@ -53,16 +53,16 @@ case $1 in
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
# successful stop # successful stop
log $UUID managed to $1 log $UUID managed to $1
else else
# failed to stop guest # failed to stop guest
log $UUID failed to $1 log $UUID failed to $1
fi fi
done done
;; ;;
disarm) disarm)
# set the 'autoboot' attribute to 'false' for every installed guest on order to prevent automatic start-up without this script # set the 'autoboot' attribute to 'false' for every installed guest in order to prevent automatic start-up without this script
zoneadm list -pi | while IFS=":" read ID UUID STATE remainder; do zoneadm list -pi | while IFS=":" read ID UUID STATE remainder; do
if [[ $STATE == "installed" ]]; if [[ $STATE == "installed" ]];
then then