add commented new feature
This commit is contained in:
parent
aa9982fdbe
commit
0d52aeba3b
1 changed files with 26 additions and 0 deletions
26
functions.sh
26
functions.sh
|
@ -22,6 +22,32 @@ promptcommandmunge () {
|
|||
}
|
||||
|
||||
function _pkcs11module_hook() {
|
||||
|
||||
# if [ -S ~/.ssh/ssh_from_remote_auth_sock ]
|
||||
# then
|
||||
# if ss -elx|grep -q $(readlink -f ~/.ssh/ssh_from_remote_auth_sok) # test if socket is active
|
||||
# then
|
||||
# # Use PKCS11_MODULE from remote connection, even when using local machine
|
||||
# # This is for: When i'm logged in from remote and working on local workstation, so i can use the token locally too
|
||||
# #echo "read p11m" >&2
|
||||
# if [ -e ~/.ssh/p11m ]
|
||||
# then
|
||||
# . ~/.ssh/p11m
|
||||
# else
|
||||
# rm ~/.ssh/p11m
|
||||
# unset P11M
|
||||
# unset PKCS11_MODULE
|
||||
# fi
|
||||
# fi
|
||||
# else
|
||||
# #echo "NOT read p11m, delete it!" >&2
|
||||
# [ -e ~/.ssh/p11m ] && { rm ~/.ssh/p11m; \
|
||||
# unset P11M; \
|
||||
# unset PKCS11_MODULE; \
|
||||
# }
|
||||
#
|
||||
# fi
|
||||
|
||||
if [ -z "${PKCS11_MODULE:+x}" ]
|
||||
then
|
||||
# setze PKCS11_MODULE
|
||||
|
|
Loading…
Reference in a new issue