dut-console: Add small script to read servo consoles

I've been using a one-liner to read consoles for a while, that looked
like this:
cu --nostop -l \
  $(cd ~/chromiumos; cros_sdk -- dut-control cpu_uart_pty | \
    cut -d : -f 2) | tee log-cpu

It's not great as cros_sdk requires root (so one needs to enter
password). This scripts just calls dut-control in the chroot
directly, and makes it easy to access different consoles.

BUG=none
TEST=dut-console ec, dut-console cpu

Change-Id: Idfc3a1832edc0d77fef6a8a80b6118d415bbcfdf
Reviewed-on: https://chromium-review.googlesource.com/1184561
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed