Loading src/power.sh +7 −11 Original line number Diff line number Diff line Loading @@ -53,9 +53,9 @@ _graceful_shutdown() { while [ "$(cat $QEMU_COUNT)" -lt "$QEMU_TIMEOUT" ]; do # Try to connect to qemu if echo 'info version'| nc -q 1 -w 1 localhost "$QEMU_PORT" >/dev/null 2>&1 ; then sleep 1 if ! echo 'info version'| nc -q 1 -w 1 localhost "$QEMU_PORT" >/dev/null 2>&1 ; then break fi # Increase the counter cnt=$(($(cat $QEMU_COUNT)+1)) Loading @@ -63,10 +63,6 @@ _graceful_shutdown() { [[ "$DEBUG" == [Yy1]* ]] && info "Shutting down, waiting... ($cnt/$QEMU_TIMEOUT)" else break fi done if [ "$(cat $QEMU_COUNT)" -ge "$QEMU_TIMEOUT" ]; then Loading Loading
src/power.sh +7 −11 Original line number Diff line number Diff line Loading @@ -53,9 +53,9 @@ _graceful_shutdown() { while [ "$(cat $QEMU_COUNT)" -lt "$QEMU_TIMEOUT" ]; do # Try to connect to qemu if echo 'info version'| nc -q 1 -w 1 localhost "$QEMU_PORT" >/dev/null 2>&1 ; then sleep 1 if ! echo 'info version'| nc -q 1 -w 1 localhost "$QEMU_PORT" >/dev/null 2>&1 ; then break fi # Increase the counter cnt=$(($(cat $QEMU_COUNT)+1)) Loading @@ -63,10 +63,6 @@ _graceful_shutdown() { [[ "$DEBUG" == [Yy1]* ]] && info "Shutting down, waiting... ($cnt/$QEMU_TIMEOUT)" else break fi done if [ "$(cat $QEMU_COUNT)" -ge "$QEMU_TIMEOUT" ]; then Loading