mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-09 09:57:32 +08:00
Revert to sleep
This commit is contained in:
parent
d650e8d46f
commit
2e0449aacf
@ -3,13 +3,6 @@ set -u
|
|||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
snore()
|
|
||||||
{
|
|
||||||
local IFS
|
|
||||||
[[ -n "${_snore_fd:-}" ]] || exec {_snore_fd}<> <(:)
|
|
||||||
read ${1:+-t "$1"} -u $_snore_fd || :
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkNMI {
|
function checkNMI {
|
||||||
|
|
||||||
local nmi
|
local nmi
|
||||||
@ -28,7 +21,7 @@ function checkNMI {
|
|||||||
|
|
||||||
finish() {
|
finish() {
|
||||||
|
|
||||||
echo "Shutting down vDSM Guest Agent.." > /dev/ttyS0
|
echo "Shutting down Guest Agent.." > /dev/ttyS0
|
||||||
exit
|
exit
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -77,11 +70,13 @@ echo "-------------------------------------------" > /dev/ttyS0
|
|||||||
echo " You can now login to DSM at port 5000 " > /dev/ttyS0
|
echo " You can now login to DSM at port 5000 " > /dev/ttyS0
|
||||||
echo "-------------------------------------------" > /dev/ttyS0
|
echo "-------------------------------------------" > /dev/ttyS0
|
||||||
|
|
||||||
|
# TODO: Auto-update agent
|
||||||
|
|
||||||
# Wait for NMI interrupt as a shutdown signal
|
# Wait for NMI interrupt as a shutdown signal
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
checkNMI
|
checkNMI
|
||||||
snore 2
|
sleep 2
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user