diff options
author | Maxim Devaev <[email protected]> | 2024-03-31 14:02:33 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-07-19 15:25:13 +0300 |
commit | d082f05e7ad20980d12c930cca807565f8547546 (patch) | |
tree | c9b5f470c289c6878c8ceeb7b3759ffa4f1179fe | |
parent | 5bdc9989222ce0344d773a64f8913f0149c14af4 (diff) |
improved kvmd-udev-restart-pass
-rw-r--r-- | PKGBUILD | 3 | ||||
-rwxr-xr-x | scripts/kvmd-udev-restart-pass | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -114,6 +114,9 @@ depends=( # fsck for /boot dosfstools + # pgrep for kvmd-udev-restart-pass + procps-ng + # Misc hostapd ) diff --git a/scripts/kvmd-udev-restart-pass b/scripts/kvmd-udev-restart-pass index addf4bc2..760267eb 100755 --- a/scripts/kvmd-udev-restart-pass +++ b/scripts/kvmd-udev-restart-pass @@ -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 |