#!/bin/bash

if test $# == 0; then
    die "Usage: send-at AT_CMD [EXIT_PATTERN]...

    The default patterns are OK, NO CARRIER, etc.

    Which means that when the AT replies with any of the above strings, the
    send-at test command will terminate and return with the index of the command
    as its exit value.

    In the above example, the 'OK' will cause exit of 0, because it is the first
    and thus index 0.

    When supplying your own EXIT_PATTERN(s), you need to arrange them
    accordingly, so that the normal case will exit with 0."
fi

tcmd-at "$@"
