From 4cec632a3757f67330f05aa341e4ae6aba25b2e7 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 26 Mar 2024 18:52:27 +0200 Subject: restart ustreamer for v4p --- scripts/kvmd-udev-restart-pass | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3