remove token and readd if add not possible

This commit is contained in:
Jakobus Schürz 2021-01-20 17:09:09 +01:00
parent 52878eb744
commit b677438fa8

View file

@ -827,7 +827,7 @@ token(){
# token -r|-f|--reload-token <identity> will remove token from agent and add it again (if plugged off and plugged in again # token -r|-f|--reload-token <identity> will remove token from agent and add it again (if plugged off and plugged in again
# startagent -t $@ # startagent -t $@
loadagent $@ loadagent $@
loginfo "$(ssh-add -s $PKCS11_MODULE)" loginfo "$(ssh-add -s $PKCS11_MODULE || { ssh-add -e $PKCS11-MODULE; ssh-add -s $PKCS11_MODULE; } )"
loginfo "$(ssh-add -l)" loginfo "$(ssh-add -l)"