mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-10-12 21:54:59 +08:00
fix: Relay last status message (#1054)
This commit is contained in:
parent
fae14f4dd9
commit
3db91f077f
@ -3,9 +3,14 @@ set -Eeuo pipefail
|
|||||||
|
|
||||||
path="/run/shm/msg.html"
|
path="/run/shm/msg.html"
|
||||||
|
|
||||||
|
if [ -f "$path" ] && [ -s "$path" ]; then
|
||||||
|
echo -n "s: " && cat "$path"
|
||||||
|
fi
|
||||||
|
|
||||||
inotifywait -m "$path" |
|
inotifywait -m "$path" |
|
||||||
while read -r fp event fn; do
|
while read -r fp event fn; do
|
||||||
case "${event,,}" in
|
case "${event,,}" in
|
||||||
"modify" ) echo -n "s: " && cat "$path" ;;
|
"modify"* ) echo -n "s: " && cat "$path" ;;
|
||||||
|
"delete_self" ) echo "c: vnc" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user