1 |
#!/bin/sh |
#!/bin/sh |
|
#$Header: /root/magellan-cvs/src/kdebase4-workspace/agent-shutdown.sh,v 1.1 2007-12-16 02:29:31 niro Exp $ |
|
2 |
# |
# |
3 |
# Agents shutdown file |
# Agents shutdown file |
4 |
# |
# |
6 |
# Uncomment the following lines to kill the agents |
# Uncomment the following lines to kill the agents |
7 |
# that were started at session startup. |
# that were started at session startup. |
8 |
|
|
9 |
#if [ "${GPG_AGENT_INFO}" ]; then |
if [ "${GPG_AGENT_INFO}" ] |
10 |
# kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1 |
then |
11 |
#fi |
kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1 |
12 |
|
fi |
13 |
|
|
14 |
#if [ "${SSH_AGENT_PID}" ]; then |
if [ "${SSH_AGENT_PID}" ] |
15 |
# ssh-agent -k |
then |
16 |
#fi |
ssh-agent -k |
17 |
|
fi |