xref: /freebsd/contrib/libfido2/tools/fido2-detach.sh (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
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
7DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"
8
9while [ -n "${DEV}" ]; do
10	sleep .5
11	DEV="$(fido2-token -L | sed 's/^\(.*\): .*$/\1/;q')"
12done
13