mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
quick workaround for broken %b
This commit is contained in:
parent
d57d33c2c7
commit
19f8bd613e
@ -28,6 +28,9 @@ set -x
|
|||||||
board="$1"
|
board="$1"
|
||||||
port="$2"
|
port="$2"
|
||||||
|
|
||||||
|
# В новом systemd поломали %b в правилах udev
|
||||||
|
[ -n "$port" ] || exit 0
|
||||||
|
|
||||||
# https://gist.github.com/mdevaev/6eb65be689142e5ac16da7542f50830f
|
# https://gist.github.com/mdevaev/6eb65be689142e5ac16da7542f50830f
|
||||||
model="`tr < /proc/device-tree/model -d '\000'`"
|
model="`tr < /proc/device-tree/model -d '\000'`"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user