Linebreaks
This commit is contained in:
parent
00e6e73b63
commit
4f80371e10
1 changed files with 2 additions and 0 deletions
2
power.sh
2
power.sh
|
@ -28,6 +28,7 @@ _graceful_shutdown(){
|
||||||
[ -f "${_QEMU_SHUTDOWN_COUNTER}" ] && return
|
[ -f "${_QEMU_SHUTDOWN_COUNTER}" ] && return
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
echo
|
||||||
echo "Received $1 signal, shutting down..."
|
echo "Received $1 signal, shutting down..."
|
||||||
echo 0 > "${_QEMU_SHUTDOWN_COUNTER}"
|
echo 0 > "${_QEMU_SHUTDOWN_COUNTER}"
|
||||||
|
|
||||||
|
@ -48,6 +49,7 @@ _graceful_shutdown(){
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo
|
||||||
echo "Quitting..."
|
echo "Quitting..."
|
||||||
echo 'quit' | nc -q 1 -w 1 localhost "${QEMU_MONPORT:-7100}">/dev/null || true
|
echo 'quit' | nc -q 1 -w 1 localhost "${QEMU_MONPORT:-7100}">/dev/null || true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue