mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
kvmd-udev-restart-pass fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user