summaryrefslogtreecommitdiff
path: root/scripts/kvmd-udev-hdmiusb-check
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kvmd-udev-hdmiusb-check')
-rwxr-xr-xscripts/kvmd-udev-hdmiusb-check3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/kvmd-udev-hdmiusb-check b/scripts/kvmd-udev-hdmiusb-check
index f6446fa7..ada4ceab 100755
--- a/scripts/kvmd-udev-hdmiusb-check
+++ b/scripts/kvmd-udev-hdmiusb-check
@@ -28,6 +28,9 @@ set -x
board="$1"
port="$2"
+# В новом systemd поломали %b в правилах udev
+[ -n "$port" ] || exit 0
+
# https://gist.github.com/mdevaev/6eb65be689142e5ac16da7542f50830f
model="`tr < /proc/device-tree/model -d '\000'`"