summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-03-26 18:52:27 +0200
committerMaxim Devaev <[email protected]>2024-03-26 18:52:27 +0200
commit4cec632a3757f67330f05aa341e4ae6aba25b2e7 (patch)
treed7be11fd97c32dcce7c2a917367e6f72edea73c8
parent50e9ff54c9deb3625977f4be97734025d9e13af6 (diff)
restart ustreamer for v4p
-rwxr-xr-xscripts/kvmd-udev-restart-pass4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kvmd-udev-restart-pass b/scripts/kvmd-udev-restart-pass
index 77a1515a..52e2c740 100755
--- a/scripts/kvmd-udev-restart-pass
+++ b/scripts/kvmd-udev-restart-pass
@@ -44,6 +44,10 @@ if [ "$port" = "HDMI-A-1" ]; then
status=$(head -n 1 "/sys/class/drm/$card-$port/status")
if [ "$status" = "connected" ]; then
systemctl restart kvmd-pass || true
+ pid=$(pidof ustreamer || echo 0)
+ if [ "$pid" -ne 0 ]; then
+ kill "$pid" || true
+ fi
fi
fi
fi