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
|
# 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user