mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
restart ustreamer for v4p
This commit is contained in:
parent
50e9ff54c9
commit
4cec632a37
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user