summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-12 12:35:22 +0300
committerDevaev Maxim <[email protected]>2021-05-12 12:35:22 +0300
commit19f8bd613e163da630a263cc41def0667bbb14fa (patch)
tree0e95ab2c20304b1f957235f5dc2daa12d740b2c5 /scripts
parentd57d33c2c725d2791ff6e08f91e124c1549a424d (diff)
quick workaround for broken %b
Diffstat (limited to 'scripts')
-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'`"