Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/libfido2/tools/fido2-attach.sh
39507 views
1
#!/bin/sh
2
3
# Copyright (c) 2020 Yubico AB. All rights reserved.
4
# Use of this source code is governed by a BSD-style
5
# license that can be found in the LICENSE file.
6
# SPDX-License-Identifier: BSD-2-Clause
7
8
DEV=""
9
10
while [ -z "${DEV}" ]; do
11
sleep .5
12
DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"
13
done
14
15
printf '%s\n' "${DEV}"
16
17