diff options
Diffstat (limited to 'opensuse/tdebase/stopkde.suse.sh')
-rw-r--r-- | opensuse/tdebase/stopkde.suse.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/opensuse/tdebase/stopkde.suse.sh b/opensuse/tdebase/stopkde.suse.sh new file mode 100644 index 000000000..54f7de3a3 --- /dev/null +++ b/opensuse/tdebase/stopkde.suse.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +if test -n "$SSH_AGENT_PID"; then + ssh-agent -k +fi + +if test -n "$GPG_AGENT_INFO"; then + pid=`echo "$GPG_AGENT_INFO" | cut -d: -f2` + if test -n "$pid"; then + kill $pid + fi +fi + |