mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 02:21:53 +08:00
improved kvmd-udev-restart-pass
This commit is contained in:
3
PKGBUILD
3
PKGBUILD
@@ -114,6 +114,9 @@ depends=(
|
|||||||
# fsck for /boot
|
# fsck for /boot
|
||||||
dosfstools
|
dosfstools
|
||||||
|
|
||||||
|
# pgrep for kvmd-udev-restart-pass
|
||||||
|
procps-ng
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
hostapd
|
hostapd
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -45,9 +45,8 @@ if [ "$port" = "HDMI-A-1" ]; 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
|
||||||
fi
|
fi
|
||||||
pid=$(pidof ustreamer || echo 0)
|
for pid in $(pgrep -f '^kvmd/streamer: ' || true); do
|
||||||
if [ "$pid" -ne 0 ]; then
|
|
||||||
kill "$pid" || true
|
kill "$pid" || true
|
||||||
fi
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user