Cleanup some more

This commit is contained in:
David Holland 2022-05-31 22:03:48 +02:00
parent ea207177f8
commit ba19df3e5b
Signed by: DustVoice
GPG key ID: 47068995A14EDCA9

View file

@ -174,18 +174,8 @@ function hyperv-gpg-agent() {
(setsid socat UNIX-LISTEN:$socket_path,fork tcp-connect:$host_ip:59545)
}
function hyperv-gpg-agent-extra() {
socket_path="$HOME/.gnupg/S.gpg-agent.extra"
host_ip=$(ip route show 0.0.0.0/0 dev eth0 | cut -d\ -f3)
if [[ -f $socket_path ]]; then
rm $socket_path
fi
(setsid socat UNIX-LISTEN:$socket_path,fork tcp-connect:$host_ip:59544)
}
function hyperv-ssh-agent() {
socket_path="$HOME/.gnupg/S.gpg-agent.ssh"
#socket_path="$HOME/.ssh/agent.sock"
host_ip=$(ip route show 0.0.0.0/0 dev eth0 | cut -d\ -f3)
if [[ -f $socket_path ]]; then
rm $socket_path