Skip to content

Commit

Permalink
proxyclient:picocom-sec.sh:warn when overriding SECDEV
Browse files Browse the repository at this point in the history
Add a warning message when overriding the target serial device with
SECDEV variable, just in case one is caught by surprise there.

Signed-off-by: Alexis Deruelle <[email protected]>
  • Loading branch information
alxdrl authored and marcan committed Aug 17, 2023
1 parent 21a403a commit b2e5b3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proxyclient/tools/picocom-sec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Darwin)
SECDEV="$DEFAULT_SECDEV" ;;
esac

if [ "$M1N1DEVICE" ] ; then
SECDEV="$M1N1DEVICE"
echo "warning: overriding device name from M1N1DEVICE environment variable ($DECDEV)!"
fi

# The secondary UART device shows up when m1n1 boots on the tethered machine
echo "Waiting for UART device file '$SECDEV' to appear (Ctrl+C to abort)..."

Expand Down

0 comments on commit b2e5b3e

Please sign in to comment.