restart ustreamer for v4p

This commit is contained in:
Maxim Devaev 2024-03-26 18:52:27 +02:00
parent 50e9ff54c9
commit 4cec632a37

View File

@ -44,6 +44,10 @@ if [ "$port" = "HDMI-A-1" ]; then
status=$(head -n 1 "/sys/class/drm/$card-$port/status") status=$(head -n 1 "/sys/class/drm/$card-$port/status")
if [ "$status" = "connected" ]; then if [ "$status" = "connected" ]; then
systemctl restart kvmd-pass || true systemctl restart kvmd-pass || true
pid=$(pidof ustreamer || echo 0)
if [ "$pid" -ne 0 ]; then
kill "$pid" || true
fi
fi fi
fi fi
fi fi