From 6474d9f57552b74588351b88a64c06fd472cf8a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 10 Aug 2023 17:06:22 +0200 Subject: [PATCH 1/2] fix outputs --- bin/startagent | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/bin/startagent b/bin/startagent index 483515f..cbf77b4 100755 --- a/bin/startagent +++ b/bin/startagent @@ -381,7 +381,18 @@ logdebug "ssh_idendity: ${ssh_identity}" unset SSH_AUTH_SOCK SSH_AGENT_PID PKCS11_MODULE SSH_AGENT_ALLOW_FROM_REMOTE +ssh_agentfile=$(create_agentfilename) +ssh_socketfile=$(create_socketfilename) + set_and_load_identity_config ${ssh_identity} +sed -i -e '/PKCS11_MODULE/d' ${ssh_agentfile} +if [ -n ${PKCS11_MODULE:+x} ] +then + echo "PKCS11_MODULE=${PKCS11_MODULE}; export PKCS11_MODULE" >> ${ssh_agentfile} +fi +[ -e $ssh_agentfile ] && eval $(<${ssh_agentfile}) >/dev/null +logdebug " PKCS11_MODULE=${PKCS11_MODULE:-not set}" + logdebug " SSH_ADD_OPTIONS=${SSH_ADD_OPTIONS:-not set}" logdebug "SSH_AGENT_ALLOW_FROM_REMOTE=${SSH_AGENT_ALLOW_FROM_REMOTE:-false}" logdebug " PKCS11_MODULE=${PKCS11_MODULE:-not set}" @@ -390,10 +401,6 @@ logdebug " SSH_AUTH_SOCK=${SSH_AUTH_SOCK:-not set}" logdebug " SSH_AUTH_SOCK_REMOTE=${SSH_AUTH_SOCK_REMOTE:-not set}" logdebug " ssh_idendity=${ssh_identity}" -ssh_agentfile=$(create_agentfilename) -ssh_socketfile=$(create_socketfilename) - -[ -e $ssh_agentfile ] && eval $(<$ssh_agentfile) >&2 check_and_link_socket logdebug "SSH_AGENT_FILE=${ssh_agentfile}" logdebug " SSH_AGENT_PID=${SSH_AGENT_PID}" From e9db23f96319a15ba7c98a4da5d943027faee0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Fri, 1 Sep 2023 22:01:14 +0200 Subject: [PATCH 2/2] add pw-generation alias --- aliases | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aliases b/aliases index ae3803b..babb255 100644 --- a/aliases +++ b/aliases @@ -21,6 +21,8 @@ alias umountshared='sudo systemctl stop media-remote-sharefs-userdata.mount' alias musictag='python3 -m music_tag' alias nestedwayland='dbus-run-session -- gnome-shell --nested --wayland' alias xo='xdg-open .' +alias pwgeninitial='tr -dc "/1l|Ii\0OL"