From 165ca1a8e33c51b0881e73b953b787382824ae46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 13 Aug 2020 22:29:39 +0200 Subject: [PATCH] add function to remove token --- functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.sh b/functions.sh index f6422b8..5c56b77 100755 --- a/functions.sh +++ b/functions.sh @@ -649,6 +649,10 @@ reachable () { } +utoken () { +[ -z "${PKCS11_MODULE+x}" ] && { PKCS11_MODULE=/usr/lib64/p11-kit-proxy.so; export PKCS11_MODULE; ssh-add -e $PKCS11_MODULE; } + +} token () { [ -z "${PKCS11_MODULE+x}" ] && { PKCS11_MODULE=/usr/lib64/p11-kit-proxy.so; export PKCS11_MODULE; }