quick workaround for broken %b

This commit is contained in:
Devaev Maxim 2021-05-12 12:35:22 +03:00
parent d57d33c2c7
commit 19f8bd613e

View File

@ -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'`"