mirror of
https://github.com/samuelncui/yatm.git
synced 2025-12-23 06:15:22 +00:00
8 lines
176 B
Bash
Executable File
8 lines
176 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex;
|
|
|
|
mt -f ${DEVICE} load
|
|
BARCODE=`./yatm-lto-info -f ${DEVICE} | grep 'Barcode' | awk '{print $3}'`
|
|
echo "{\"barcode\": \"$BARCODE\"}" > $OUT
|
|
sleep 3
|