mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
kvmd-udev-restart-pass: fixed port grep
This commit is contained in:
parent
9adba87f18
commit
c407648116
@ -35,7 +35,7 @@ test -n "$conn_id"
|
||||
card_n="${card/card/}"
|
||||
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"
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user