Magellan Linux

Contents of /trunk/kdebase-workspace/agent-shutdown.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2012 - (show annotations) (download) (as text)
Thu Jan 3 15:21:57 2013 UTC (11 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 319 byte(s)
-autostart agents
1 #!/bin/sh
2 #
3 # Agents shutdown file
4 #
5 # This file is executed at kde shutdown.
6 # Uncomment the following lines to kill the agents
7 # that were started at session startup.
8
9 if [ "${GPG_AGENT_INFO}" ]
10 then
11 kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1
12 fi
13
14 if [ "${SSH_AGENT_PID}" ]
15 then
16 ssh-agent -k
17 fi