freebsd-nq/contrib/libfido2/tools/fido2-detach.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

13 lines
316 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="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"
while [ -n "${DEV}" ]; do
sleep .5
DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"
done