kvmd-udev-restart-pass fix

This commit is contained in:
Maxim Devaev 2024-03-26 20:30:13 +02:00
parent 8f56d6ec27
commit f712be823f

View File

@ -44,10 +44,6 @@ if [ "$port" = "HDMI-A-1" ]; then
if [ "$status" = "connected" ]; then if [ "$status" = "connected" ]; then
if systemctl is-enabled -q kvmd-pass; then if systemctl is-enabled -q kvmd-pass; 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
pid=$(pidof ustreamer || echo 0) pid=$(pidof ustreamer || echo 0)
if [ "$pid" -ne 0 ]; then if [ "$pid" -ne 0 ]; then