kvmd-udev-restart-pass: fixed port grep

This commit is contained in:
Maxim Devaev 2024-03-11 17:39:35 +02:00
parent 9adba87f18
commit c407648116

View File

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