2015-11-18 13:36:51 +01:00
|
|
|
#!/usr/bin/env bash
|
2015-01-10 15:50:56 +01:00
|
|
|
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser General
|
|
|
|
# Public License v2.1. See the file LICENSE in the top level directory for more
|
|
|
|
# details.
|
|
|
|
|
2023-01-05 19:03:35 +01:00
|
|
|
exit_code=1
|
2016-05-18 21:07:24 +02:00
|
|
|
|
2023-07-12 00:12:43 +02:00
|
|
|
SCRIPTDIR="$(cd "$(dirname "$0")" || exit 1; pwd)"
|
2023-01-05 19:03:35 +01:00
|
|
|
for serial in "$@"; do
|
2023-07-12 00:12:43 +02:00
|
|
|
if "$SCRIPTDIR"/ttys.py --format path --serial "$serial"; then
|
2023-01-05 19:03:35 +01:00
|
|
|
exit_code=0
|
2015-01-10 15:50:56 +01:00
|
|
|
fi
|
|
|
|
done
|
2016-05-18 21:07:24 +02:00
|
|
|
|
2023-01-05 19:03:35 +01:00
|
|
|
exit $exit_code
|