mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2025-02-26 23:00:50 +07:00
Remove snore
This commit is contained in:
parent
2e0449aacf
commit
bcfc58a870
@ -19,13 +19,6 @@ _trap(){
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
snore()
|
|
||||||
{
|
|
||||||
local IFS
|
|
||||||
[[ -n "${_snore_fd:-}" ]] || exec {_snore_fd}<> <(:)
|
|
||||||
read ${1:+-t "$1"} -u $_snore_fd || :
|
|
||||||
}
|
|
||||||
|
|
||||||
_graceful_shutdown(){
|
_graceful_shutdown(){
|
||||||
|
|
||||||
local QEMU_MONPORT="${QEMU_MONPORT:-7100}"
|
local QEMU_MONPORT="${QEMU_MONPORT:-7100}"
|
||||||
@ -42,7 +35,7 @@ _graceful_shutdown(){
|
|||||||
# echo 'system_powerdown' | nc -q 1 -w 1 localhost "${QEMU_MONPORT}">/dev/null
|
# echo 'system_powerdown' | nc -q 1 -w 1 localhost "${QEMU_MONPORT}">/dev/null
|
||||||
|
|
||||||
# Send shutdown command to guest agent tools instead via serial port
|
# Send shutdown command to guest agent tools instead via serial port
|
||||||
RESPONSE=$(curl -s -m 3 -S http://127.0.0.1:2210/write?command=6)
|
RESPONSE=$(curl -s -m 2 -S http://127.0.0.1:2210/write?command=6)
|
||||||
|
|
||||||
if [[ ! "${RESPONSE}" =~ "\"success\"" ]] ; then
|
if [[ ! "${RESPONSE}" =~ "\"success\"" ]] ; then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user