Add usbtesting only script

This commit is contained in:
paukstelis
2021-03-27 08:29:04 -04:00
parent a33efb3548
commit ca6a6b3ce6
2 changed files with 15 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ then
counter=0
while [[ -z "$UDEV" ]] && [[ $counter -lt 30 ]]; do
UDEV=$(timeout 1s journalctl -kf | sed -n -e 's/^.*SerialNumber: //p')
TEMPUSB=$(timeout 1s journalctl -kf | sed -n -e 's/^.*\(cdc_acm\|ftdi_sio\) \([0-9].*[0-9]\): \(tty.*\|FTD.*\).*/\2/p')
TEMPUSB=$(timeout 1s journalctl -kf | sed -n -e 's/^.*\(cdc_acm\|ftdi_sio\|ch341\) \([0-9].*[0-9]\): \(tty.*\|FTD.*\|ch341.*\).*/\2/p')
counter=$(( $counter + 1 ))
done
fi