summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-03-11 17:39:35 +0200
committerMaxim Devaev <[email protected]>2024-03-11 17:39:35 +0200
commitc407648116f3a9b9884c7e58d1562888b1232cd7 (patch)
tree5cb046f7dea93acdce0f616f9b582d178eb25f22 /scripts
parent9adba87f18b61f89764d9613b8d4bc3d46f86bb9 (diff)
kvmd-udev-restart-pass: fixed port grep
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kvmd-udev-restart-pass2
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"