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