freebsd-dev/contrib/libfido2/tools/fido2-attach.sh
Ed Maste 0afa8e065e Import libfido2 at 'contrib/libfido2/'
git-subtree-dir: contrib/libfido2
git-subtree-mainline: d586c978b9
git-subtree-split: a58dee945a
2021-10-06 21:29:18 -04:00

15 lines
294 B
Bash
Executable File

#!/bin/sh
# Copyright (c) 2020 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
DEV=""
while [ -z "${DEV}" ]; do
sleep .5
DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"
done
printf '%s\n' "${DEV}"