mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
kvmd-udev-restart-pass: fixed port grep
This commit is contained in:
@@ -35,7 +35,7 @@ test -n "$conn_id"
|
|||||||
card_n="${card/card/}"
|
card_n="${card/card/}"
|
||||||
test -n "$card_n"
|
test -n "$card_n"
|
||||||
|
|
||||||
port=$(grep "^connector\[$conn_id\]:" "/sys/kernel/debug/dri/$card_n/state" | awk '{print $1}')
|
port=$(grep "^connector\[$conn_id\]:" "/sys/kernel/debug/dri/$card_n/state" | awk '{print $2}')
|
||||||
test -n "$port"
|
test -n "$port"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user