#!/bin/bash

set -o pipefail

uartUltimo=$1
mac_path=$2
baudrate=$3

printf "getmac\r\n" | microcom -s "$baudrate" -t 200 "$uartUltimo" | grep "MAC 00:1D:C1:" | sed "s/MAC //" > "$mac_path"
