diff options
author | Maxim Devaev <[email protected]> | 2024-03-11 17:39:35 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-03-11 17:39:35 +0200 |
commit | c407648116f3a9b9884c7e58d1562888b1232cd7 (patch) | |
tree | 5cb046f7dea93acdce0f616f9b582d178eb25f22 | |
parent | 9adba87f18b61f89764d9613b8d4bc3d46f86bb9 (diff) |
kvmd-udev-restart-pass: fixed port grep
-rwxr-xr-x | scripts/kvmd-udev-restart-pass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kvmd-udev-restart-pass b/scripts/kvmd-udev-restart-pass index 21f3b9b9..93f7d85c 100755 --- a/scripts/kvmd-udev-restart-pass +++ b/scripts/kvmd-udev-restart-pass @@ -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" |