mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
kvmd-udev-restart-pass fix
This commit is contained in:
parent
8f56d6ec27
commit
f712be823f
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user