diff options
author | Maxim Devaev <[email protected]> | 2024-03-26 18:52:27 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-03-26 18:52:27 +0200 |
commit | 4cec632a3757f67330f05aa341e4ae6aba25b2e7 (patch) | |
tree | d7be11fd97c32dcce7c2a917367e6f72edea73c8 | |
parent | 50e9ff54c9deb3625977f4be97734025d9e13af6 (diff) |
restart ustreamer for v4p
-rwxr-xr-x | scripts/kvmd-udev-restart-pass | 4 |
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 |