| 1234567891011121314151617 | #!/bin/shprg=$(basename "$0")port="$1"if [ -z "$port" -o "$port" = "-h" ]then  echo "usage: $0 <port>" >&2  echo "Connect to <port> and dump the content of the EEPROM using D3 to stdout" >&2  exit 1fiset -etmp=$(mktemp)trap "rm -f \"$tmp\"" EXITecho D3 > "$tmp"printcore -v "$port" "$tmp" 2>&1 | \    sed -ne '/^RECV: D3 /,/RECV: ok$/s/^RECV: //p'
 |