summaryrefslogtreecommitdiff
path: root/ao-bringup/test-chaoskey
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2017-12-21 19:07:13 -0700
committerBdale Garbee <bdale@gag.com>2017-12-21 19:07:13 -0700
commit456c27a7ed26e4edde02aa0a0b8ef4f46f1ea464 (patch)
tree7c259a612e315ac439c2d6ac87e08f6c67b68485 /ao-bringup/test-chaoskey
parentfe2fe0f4b8382d7e0a5eceaeccced28ef004dab8 (diff)
parent16a9d8617b2d2092d166a85ada4349601afb0dce (diff)
Merge branch 'branch-1.8' into debian
Diffstat (limited to 'ao-bringup/test-chaoskey')
-rwxr-xr-xao-bringup/test-chaoskey4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao-bringup/test-chaoskey b/ao-bringup/test-chaoskey
index f64b1f84..26684875 100755
--- a/ao-bringup/test-chaoskey
+++ b/ao-bringup/test-chaoskey
@@ -12,8 +12,8 @@ case "$#" in
serial="--serial $1"
;;
0)
- snum=`sudo dmesg | awk '/usb.*Product:/ { ck = index($0, "ChaosKey"); }
- /usb.*SerialNumber:/ { if (ck) print $5; }' | tail -1`
+ snum=`sudo dmesg -t | awk '/usb.*Product:/ { ck = index($0, "ChaosKey"); }
+ /usb.*SerialNumber:/ { if (ck) print $4; }' | tail -1`
case "$snum" in
"")