summaryrefslogtreecommitdiffstats
path: root/arch/tde-core/tde-tdebase/agent-shutdown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tde-core/tde-tdebase/agent-shutdown.sh')
-rw-r--r--arch/tde-core/tde-tdebase/agent-shutdown.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/tde-core/tde-tdebase/agent-shutdown.sh b/arch/tde-core/tde-tdebase/agent-shutdown.sh
new file mode 100644
index 000000000..71b056af3
--- /dev/null
+++ b/arch/tde-core/tde-tdebase/agent-shutdown.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# This file is executed at kde shutdown.
+# Uncomment the following lines to kill the agents
+# that were started at session startup.
+
+if [ "${GPG_AGENT_INFO}" ]; then
+ kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1
+fi
+#
+if [ "${SSH_AGENT_PID}" ]; then
+ ssh-agent -k
+fi