mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
improved kvmd-udev-restart-pass
This commit is contained in:
parent
5bdc998922
commit
d082f05e7a
3
PKGBUILD
3
PKGBUILD
@ -114,6 +114,9 @@ depends=(
|
||||
# fsck for /boot
|
||||
dosfstools
|
||||
|
||||
# pgrep for kvmd-udev-restart-pass
|
||||
procps-ng
|
||||
|
||||
# Misc
|
||||
hostapd
|
||||
)
|
||||
|
||||
@ -45,9 +45,8 @@ if [ "$port" = "HDMI-A-1" ]; then
|
||||
if systemctl is-enabled -q kvmd-pass; then
|
||||
systemctl restart kvmd-pass || true
|
||||
fi
|
||||
pid=$(pidof ustreamer || echo 0)
|
||||
if [ "$pid" -ne 0 ]; then
|
||||
for pid in $(pgrep -f '^kvmd/streamer: ' || true); do
|
||||
kill "$pid" || true
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user